spamscanner / url-regex-safe

Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661 for Node.js servers.
https://forwardemail.net/docs/url-regex-javascript-node-js
MIT License
79 stars 16 forks source link

Make re2 optional #19

Closed vicary closed 2 years ago

vicary commented 2 years ago

Fixes #18

The PR currently uses option 2, a less intrusive change.

codyogden commented 2 years ago

Thank you for figuring this out! This is affecting a bunch of downstream projects, hoping this gets merged asap. 🤞

niftylettuce commented 2 years ago

v2.1.0 released which resolves this issue, thanks to @vicary for the PR

https://github.com/niftylettuce/url-regex-safe/releases/tag/v2.1.0