url-regex
url-regex copied to clipboard
Spread operator issue on some browsers
Since the update to release 5.0.0 - the spread operator at https://github.com/kevva/url-regex/blob/master/index.js#L8 is causing issues in some browsers which don't support that. even though node handles it, javascript fails in certain older browsers.
Could the spread operator be reverted back to Object.assign since it's only used in 1 place and would work on all browsers then?
This issue is fixed in my maintained and modern version of this package at https://github.com/niftylettuce/url-regex-safe. You should be able to switch from url-regex to url-regex-safe now. See the updated list of options as I added some new ones, and changed a few defaults to more sensible ones (since not everyone is parsing Markdown for instance).