From 554ce6534674bcd37ced88bbe9722a952ae2fa00 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 17 Aug 2021 12:15:07 +0530 Subject: [PATCH] check for HTML tags across multiple lines --- scripts/lint-translations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lint-translations.js b/scripts/lint-translations.js index bc18dd724..5e7f81b17 100644 --- a/scripts/lint-translations.js +++ b/scripts/lint-translations.js @@ -68,7 +68,7 @@ var processLang = function (map, lang, primary) { if (typeof(s) !== 'string') { return; } var usesHTML; - s.replace(/<.*?>/g, function (html) { + s.replace(/<[\s\S]*?>/g, function (html) { if (simpleTags.indexOf(html) !== -1) { return; } announce(); usesHTML = true;