Skip to content

Commit

Permalink
Remove m flag from regex
Browse files Browse the repository at this point in the history
  • Loading branch information
adam3smith committed Dec 3, 2024
1 parent f7280b6 commit 27ea1a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Taylor and Francis+NEJM.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ async function scrape(doc, url = doc.location.href) {
risText = risText.replace(/^Y1(\s+-.*)/gm, '');
}
// Fix broken BibTeX as in https://github.com/zotero/translators/issues/3398
if (/@article\{[^,]+\}/m.test(bibtexText)) {
if (/@article\{[^,]+\}/.test(bibtexText)) {
Z.debug("Fixing BibTeX");
bibtexText = bibtexText.replace(/(@article\{[^,]+)\}/m, '$1');
bibtexText = bibtexText.replace(/(@article\{[^,]+)\}/, '$1');
// Z.debug(bibtexText);
}

Expand Down

0 comments on commit 27ea1a5

Please sign in to comment.