Closed birtles closed 11 months ago
Amazing work! 🙏 Thank you!
Publishing now, one moment
v4.0.0 released with this, thank you @birtles
release notes @ https://github.com/spamscanner/url-regex-safe/releases/tag/v4.0.0
note: this version now requires node v14+
Fixes #17.
This also extends
trailingPeriod: false
(the default) to exclude matching a trailing question mark (?) or exclamation mark (!).That is if you want "Check out example.com/project." to NOT match the trailing period, you typically also want it to NOT match the trailing exclamation mark in "Check out example.com/project!". Likewise for "Have you seen example.com/project?".
I guess technically
trailingPeriod
should be renamedtrailingPunctuation
but maybe it's fine as-is?Checklist