DEV: Make banned-phrase detection case insensitive (#30271)

Followup to 78dacf773a60e1590ba8894f9fd5e07e427ec573
This commit is contained in:
David Taylor 2024-12-13 16:24:35 +00:00 committed by GitHub
parent 78dacf773a
commit d0df16535e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,7 @@ class LocaleFileValidator
end
BANNED_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)
end
end
end