mirror of
https://github.com/mastodon/mastodon.git
synced 2025-03-14 17:12:59 +01:00
Add a test for unicode domain name mentions
This commit is contained in:
parent
1b909c98ab
commit
e7d0e511a9
1 changed files with 4 additions and 0 deletions
|
@ -665,6 +665,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…
Add table
Reference in a new issue