mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Bye bye bygbug.
This commit is contained in:
parent
ce07da1d8b
commit
eafd0a7497
@ -10,7 +10,6 @@ class CensoredWordsValidator < ActiveModel::EachValidator
|
|||||||
elsif !SiteSetting.censored_pattern.blank? &&
|
elsif !SiteSetting.censored_pattern.blank? &&
|
||||||
!(censored_words = value.scan(/#{SiteSetting.censored_pattern}/i)).empty?
|
!(censored_words = value.scan(/#{SiteSetting.censored_pattern}/i)).empty?
|
||||||
|
|
||||||
byebug
|
|
||||||
record.errors.add(
|
record.errors.add(
|
||||||
attribute, :matches_censored_pattern,
|
attribute, :matches_censored_pattern,
|
||||||
censored_words: join_censored_words(censored_words)
|
censored_words: join_censored_words(censored_words)
|
||||||
|
Loading…
Reference in New Issue
Block a user