mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 13:35:44 +08:00
DEV: Make banned-phrase detection case insensitive (#30271)
Followup to 78dacf773a60e1590ba8894f9fd5e07e427ec573
This commit is contained in:
parent
78dacf773a
commit
d0df16535e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user