diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-03-01 08:14:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 08:14:16 +0900 |
commit | 55833cf799979e63c6b027fbbf018272308caf5c (patch) | |
tree | cc0ae9aa9116e6296e5e74e1c926cfd94fa26449 /ext/url/01_urlpattern.js | |
parent | 6ffbf8a9410f5ea41669efdece60f7f47f77e3c7 (diff) |
fix(core): introduce `SafeRegExp` to primordials (#17592)
Diffstat (limited to 'ext/url/01_urlpattern.js')
-rw-r--r-- | ext/url/01_urlpattern.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/url/01_urlpattern.js b/ext/url/01_urlpattern.js index c311b5abc..93b77ee6a 100644 --- a/ext/url/01_urlpattern.js +++ b/ext/url/01_urlpattern.js @@ -15,9 +15,9 @@ const { ArrayPrototypeMap, ObjectKeys, ObjectFromEntries, - RegExp, RegExpPrototypeExec, RegExpPrototypeTest, + SafeRegExp, Symbol, SymbolFor, TypeError, @@ -73,7 +73,7 @@ class URLPattern { for (let i = 0; i < keys.length; ++i) { const key = keys[i]; try { - components[key].regexp = new RegExp( + components[key].regexp = new SafeRegExp( components[key].regexpString, "u", ); |