correctly detect -ise suffix at end of word only

...in translation linting rule
This commit is contained in:
ansuz 2022-04-14 13:14:36 +05:30
parent b069164fbf
commit f2950efca6
1 changed files with 1 additions and 1 deletions

View File

@ -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) {