Skip to content

Commit

Permalink
TextExtractor: add missing g flag in postnomials regex
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Apr 15, 2023
1 parent 3b8008c commit 661cf45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TextExtractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ export default class TextExtractor {
// Openings of any unclosed ref tags
.replace(/<ref[^<]*?(>|(?=\n))/gi, '')
// remove categories added via {{post-nomials}}
.replace(/(\|country=[A-Z]{3})-cats/, '$1');
.replace(/(\|country=[A-Z]{3})-cats/g, '$1');
}
}

0 comments on commit 661cf45

Please sign in to comment.