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

Spread operator issue on some browsers

Open mike-weshop opened this issue 6 years ago • 1 comments

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?

mike-weshop avatar Apr 24 '19 11:04 mike-weshop

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).

niftylettuce avatar Aug 15 '20 07:08 niftylettuce