mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 09:21:38 +01:00
keyword mute: Add missing scope for regex escape test
This commit is contained in:
parent
908a770d2b
commit
99b2bc2668
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ RSpec.describe Glitch::KeywordMute, type: :model do
|
||||||
it 'escapes metacharacters in non-whole-word keywords' do
|
it 'escapes metacharacters in non-whole-word keywords' do
|
||||||
Glitch::KeywordMute.create!(account: alice, keyword: '(-', whole_word: false)
|
Glitch::KeywordMute.create!(account: alice, keyword: '(-', whole_word: false)
|
||||||
|
|
||||||
expect(matcher.matches?('bad (-)')).to be_truthy
|
expect(matcher.matches?('bad (-)', Unscoped)).to be_truthy
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'uses case-folding rules appropriate for more than just English' do
|
it 'uses case-folding rules appropriate for more than just English' do
|
||||||
|
|
Loading…
Reference in a new issue