Skip to content

Commit

Permalink
Revert "Allow multiple exclamation marks in urls"
Browse files Browse the repository at this point in the history
This reverts commit 204c79d.
  • Loading branch information
Vitaly Puzrin committed May 19, 2020
1 parent f7415d5 commit 2e15209
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion lib/re.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = function (opts) {
'\\-+|'
) +
'\\,(?!' + re.src_ZCc + ').|' + // allow `,,,` in paths
'\\!(?!' + re.src_ZCc + ').|' + // allow `!!!` in paths
'\\!(?!' + re.src_ZCc + '|[!]).|' +
'\\?(?!' + re.src_ZCc + '|[?]).' +
')+' +
'|\\/' +
Expand Down
2 changes: 0 additions & 2 deletions test/fixtures/links.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,6 @@ https://www.google.com/analytics/web/?hl=ru&pli=1#report/visitors-overview/a2689

http://business.timesonline.co.uk/article/0,,9065-2473189,00.html

https://google.com/mail/u/0/#label/!!!Today/15c9b8193da01e65

http://example.com/123!
http://example.com/123

Expand Down

0 comments on commit 2e15209

Please sign in to comment.