Skip to content

Commit

Permalink
EPUB: Don't treat pagetop/pagebottom as page numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Aug 29, 2024
1 parent f54b31f commit 95b39ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dom/epub/lib/page-mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PageMapping {
return mapping;
}

static readonly VERSION = 9;
static readonly VERSION = 10;

readonly tree = new BTree<PersistentRange, string>(
undefined,
Expand Down Expand Up @@ -191,7 +191,7 @@ type Matcher = {

const MATCHERS: Matcher[] = [
{
selector: '[id*="page" i]:empty',
selector: '[id*="page" i]:not(#pagetop):not(#pagebottom):empty',
extract: el => el.id.replace(/page[-_]?/i, '').replace(/^(.*_)+/, '')
},

Expand Down

0 comments on commit 95b39ba

Please sign in to comment.