Skip to content

Commit fbe5826

Browse files
cci: fix regex
1 parent a4bcdbb commit fbe5826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wiki/DeputyCasePage.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default class DeputyCasePage extends DeputyCase {
118118
const headlineElement = this.parsoid ? el : el.querySelector<HTMLElement>( '.mw-headline' );
119119
return /^H\d$/.test( el.tagName ) &&
120120
headlineElement != null &&
121-
/(Page|Article|Local file|File)s? \d+ to \d+$/.test( headlineElement.innerText );
121+
/(Page|Article|Local file|File)s? \d+ (to|through) \d+$/.test( headlineElement.innerText );
122122
}
123123

124124
/**

0 commit comments

Comments
 (0)