mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 04:07:27 +00: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? &&
|
||||
!(censored_words = value.scan(/#{SiteSetting.censored_pattern}/i)).empty?
|
||||
|
||||
byebug
|
||||
record.errors.add(
|
||||
attribute, :matches_censored_pattern,
|
||||
censored_words: join_censored_words(censored_words)
|
||||
|
Loading…
x
Reference in New Issue
Block a user