From 27ea1a5eb6bb4620a8b516c37de40c5d73428e4f Mon Sep 17 00:00:00 2001 From: Sebastian Karcher Date: Tue, 3 Dec 2024 14:44:54 -0500 Subject: [PATCH] Remove m flag from regex --- Taylor and Francis+NEJM.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Taylor and Francis+NEJM.js b/Taylor and Francis+NEJM.js index a782f930de..baf7ad24cb 100644 --- a/Taylor and Francis+NEJM.js +++ b/Taylor and Francis+NEJM.js @@ -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); }