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

Test regex does not match leading characters before valid protocol #32

Open jefflieb-wavy opened 2 months ago

jefflieb-wavy commented 2 months ago

This is a PR to add a test for issue #31.

Also, something automatically reformatted index.js slightly.

Checklist