mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Make banned-phrase detection case insensitive (#30271)
Followup to 78dacf773a
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user