We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df8f45a commit f8a110dCopy full SHA for f8a110d
1 file changed
src/utils.js
@@ -31,7 +31,13 @@ envFlags.bugFlagVLiteralHyphenIsRange = envFlags.unicodeSets ? (() => {
31
return false;
32
})() : false;
33
// Detect WebKit bug: <github.com/slevithan/oniguruma-to-es/issues/38>
34
-envFlags.bugNestedClassIgnoresNegation = envFlags.unicodeSets && new RegExp('[[^a]]', 'v').test('a');
+envFlags.bugNestedClassIgnoresNegation = envFlags.unicodeSets ? (() => {
35
+ try {
36
+ return new RegExp("[[^a]]", "v").test("a");
37
+ } catch {
38
+ return false;
39
+ }
40
+})() : false;
41
42
function getNewCurrentFlags(current, {enable, disable}) {
43
return {
0 commit comments