mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
FIX: don't downcase watched words on input since it can break the watched_words_regular_expressions setting
This commit is contained in:
parent
daad2291ba
commit
8f21c96ea5
3 changed files with 20 additions and 4 deletions
|
@ -11,8 +11,8 @@ describe WatchedWord do
|
|||
expect(described_class.count).to eq(1)
|
||||
end
|
||||
|
||||
it "downcases words" do
|
||||
expect(described_class.create(word: "ShooT").word).to eq('shoot')
|
||||
it "doesn't downcase words" do
|
||||
expect(described_class.create(word: "ShooT").word).to eq('ShooT')
|
||||
end
|
||||
|
||||
it "strips leading and trailing spaces" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue