url-regex icon indicating copy to clipboard operation
url-regex copied to clipboard

urls with `@` followed by `.` and number are parsed incorrectly

Open DetachHead opened this issue 3 years ago • 1 comments

console.log("https://test.com/@foo.bar1baz".match(require('url-regex')({strict:true})))`
[ 'https://test.com/@foo.bar' ]

DetachHead avatar Aug 13 '22 03:08 DetachHead

url-regex-safe handles this correctly

DetachHead avatar Aug 13 '22 04:08 DetachHead