-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't allow apostrophe in URLs (#499)
Fixes #488, should end URL if encountered.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -243,9 +243,9 @@ const tests = [ | |
], | ||
['"https://surrounded.by.quotes/"', [Text, Url, Text], ['"', 'https://surrounded.by.quotes/', '"']], | ||
[ | ||
"More weird character in http://facebook.com/#aZ?/:@-._~!$&'()*+,;= that Url", | ||
'More weird character in http://facebook.com/#aZ?/:@-._~!$&()*+,;= that Url', | ||
[Text, Url, Text], | ||
['More weird character in ', "http://facebook.com/#aZ?/:@-._~!$&'()*+,;=", ' that Url'], | ||
['More weird character in ', 'http://facebook.com/#aZ?/:@-._~!$&()*+,;=', ' that Url'], | ||
], | ||
[ | ||
'Email with a underscore is [email protected] asd', | ||
|
@@ -262,6 +262,11 @@ const tests = [ | |
[Text, Url, Text], | ||
["A link in '", 'singlequote.club/wat', "' extra fluff at the end"], | ||
], | ||
[ | ||
"I really like http://singlequote.club's website design", | ||
[Text, Url, Text], | ||
['I really like ', 'http://singlequote.club', "'s website design"], | ||
], | ||
[ | ||
'Email with mailsomething dot com domain in [email protected]', | ||
[Text, Email], | ||
|