Remove RegExp lookbehind assertions used to fix "Polynomial regular expression used on uncontrolled data" because they are not supported in Safari, add eslint-plugin-es rule no-regexp-lookbehind-assertions to prevent regressions.

This commit is contained in:
David Anson 2022-02-13 16:57:09 -08:00
parent f46ee0732f
commit 7c1550cbe9
5 changed files with 9 additions and 5 deletions

View file

@ -53,6 +53,7 @@
"ava": "3.15.0",
"c8": "7.10.0",
"eslint": "8.5.0",
"eslint-plugin-es": "4.1.0",
"eslint-plugin-jsdoc": "37.4.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-unicorn": "39.0.0",