fix: make regexp more compatible
I had an issue in a custom JS env (jest for testing) that apparently doesn't support "RegExp.$1"
As stated here : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/n
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
So here is a more compatible version for the same functionality (ECMAScript 3): https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/String/match
Thank you for this module :)
I agreed with your changes and rebase the PR.
Sorry for taking so long to act on this. The code in question no longer uses a regex so I'm going to close this out.