Skip to content

Commit

Permalink
cci: fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Sep 29, 2022
1 parent a4bcdbb commit fbe5826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wiki/DeputyCasePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class DeputyCasePage extends DeputyCase {
const headlineElement = this.parsoid ? el : el.querySelector<HTMLElement>( '.mw-headline' );
return /^H\d$/.test( el.tagName ) &&
headlineElement != null &&
/(Page|Article|Local file|File)s? \d+ to \d+$/.test( headlineElement.innerText );
/(Page|Article|Local file|File)s? \d+ (to|through) \d+$/.test( headlineElement.innerText );
}

/**
Expand Down

0 comments on commit fbe5826

Please sign in to comment.