A platform for community discussion. Free, open, simple.
DEV: Make banned-phrase detection case insensitive (#30271)
David Taylord0df16535e28
diff --git a/script/i18n_lint.rb b/script/i18n_lint.rbindex 21247771fd1..7003240c8f2 100755--- a/script/i18n_lint.rb+++ b/script/i18n_lint.rb@@ -111,7 +111,7 @@ class LocaleFileValidatorendBANNED_PHRASES.keys.each do |banned|- @errors["banned_phrase_#{banned}"] << key if value.include?(banned)+ @errors["banned_phrase_#{banned}"] << key if value.downcase.include?(banned.downcase)endendend