forked from mastodon/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ß bug in regexp for mentions and tags (mastodon#31122)
- Loading branch information
1 parent
e881a59
commit 337a7fc
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -711,6 +711,14 @@ | |
it 'does not match URL query string' do | ||
expect(subject.match('https://example.com/?x=@alice')).to be_nil | ||
end | ||
|
||
it 'matches usernames immediately following the letter ß' do | ||
expect(subject.match('Hello toß @alice from me')[1]).to eq 'alice' | ||
end | ||
|
||
it 'matches usernames containing uppercase characters' do | ||
expect(subject.match('Hello to @[email protected] from me')[1]).to eq '[email protected]' | ||
end | ||
end | ||
|
||
describe 'validations' do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters