• Robert Knight's avatar
    Treat empty strings as unparsable instead of open page ranges · 76040e76
    Robert Knight authored
    Previously `pageLabelInRange` treated an empty label like a fully-open page
    range ("-"). Since a fully open range overlaps all other ranges, the function
    would always return true. Now it treats an empty string as an unparsable range
    and returns false.
    
    When filtering annotations, this change means that a page range filter will
    no longer match annotations without a page range.
    76040e76
page-range-test.js 3.25 KB