Add a test for unicode domain name mentions

This commit is contained in:
Mischa Holz 2023-07-11 09:19:49 +02:00
parent 51f47c54bf
commit 6230a3b82c
No known key found for this signature in database
GPG Key ID: 15DCD33C0CAA67B2
1 changed files with 4 additions and 0 deletions

View File

@ -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