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

Don't use arrow functions and const to work on IE11

Open guillaumewuip opened this issue 4 years ago • 2 comments

The library cannot be used out-of-the-box on IE11 because IE6 is not supported there.

This PR simply convert the two arrow functions into classic functions and replace const by var

guillaumewuip avatar Feb 04 '20 15:02 guillaumewuip

I feel like this won't be needed since this PR needs to be compiled either way to use module.exports.

Richienb avatar Jun 22 '20 23:06 Richienb

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 08:08 niftylettuce