mirror of https://github.com/mastodon/mastodon
Add a test for unicode domain name mentions
This commit is contained in:
parent
51f47c54bf
commit
6230a3b82c
|
@ -692,6 +692,10 @@ RSpec.describe Account do
|
|||
expect(subject.match('@alice@example.com')[1]).to eq 'alice@example.com'
|
||||
end
|
||||
|
||||
it 'matches full usernames with unicode domain names' do
|
||||
expect(subject.match('@alice@🌈🌈🌈.st')[1]).to eq 'alice@🌈🌈🌈.st'
|
||||
end
|
||||
|
||||
it 'matches full usernames with a dot at the end' do
|
||||
expect(subject.match('Hello @alice@example.com.')[1]).to eq 'alice@example.com'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue