mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 07:22:30 +00:00
Add important test for full-width hashtags (#3911)
This commit is contained in:
parent
eff9416469
commit
3f59238207
|
@ -11,6 +11,10 @@ RSpec.describe Tag, type: :model do
|
||||||
it 'does not match URLs with hashtag-like anchors' do
|
it 'does not match URLs with hashtag-like anchors' do
|
||||||
expect(subject.match('https://en.wikipedia.org/wiki/Ghostbusters_(song)#Lawsuit')).to be_nil
|
expect(subject.match('https://en.wikipedia.org/wiki/Ghostbusters_(song)#Lawsuit')).to be_nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'matches #aesthetic' do
|
||||||
|
expect(subject.match('this is #aesthetic')).to_not be_nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '.search_for' do
|
describe '.search_for' do
|
||||||
|
|
Loading…
Reference in a new issue