Add a test for unicode domain name mentions

This commit is contained in:
Mischa Holz 2023-07-11 09:19:49 +02:00
parent 1b909c98ab
commit e7d0e511a9
No known key found for this signature in database
GPG key ID: A6331083697F81DF

View file

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