From f2950efca62fc8878e280aab1ff8440154c0569d Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 14 Apr 2022 13:14:36 +0530 Subject: [PATCH] correctly detect -ise suffix at end of word only ...in translation linting rule --- scripts/translations/lint-translations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/translations/lint-translations.js b/scripts/translations/lint-translations.js index 313eca19e..aa2dd4244 100644 --- a/scripts/translations/lint-translations.js +++ b/scripts/translations/lint-translations.js @@ -34,7 +34,7 @@ var special_rules = {}; special_rules.en = function (s) { // Prefer the american -ize suffix for verbs rather than -ise - return /[^w]ise/.test(s); + return /[^w]ise(\s|$)/.test(s); }; special_rules.fr = function (s) {