Skip to content

Commit

Permalink
text-extractor: strip {{sfnm}} as well
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Sep 28, 2024
1 parent 8c4ffe3 commit e962afe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TextExtractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export default class TextExtractor {
extract = this.removeTemplatesOnNewlines(extract);

// Remove some other templates too
// Matches r, efn, refn, sfn, sfnp, harv, harvp, audio, and IPA.* family
extract = this.removeTemplates(extract, /^(r|sfn[bp]?|harvp?|r?efn|respell|IPA.*|audio)$/i);
// Matches r, efn, refn, sfn, sfnm, sfnp, harv, harvp, audio, and IPA.* family
extract = this.removeTemplates(extract, /^(r|sfn[bmp]?|harvp?|r?efn|respell|IPA.*|audio)$/i);

extract = extract
.replace(/<!--.*?-->/sg, '')
Expand Down

0 comments on commit e962afe

Please sign in to comment.