Remove unneeded /u flag within harness/nativeFunctionMatcher

This commit is contained in:
Paul Bakker 2024-07-23 10:20:44 +02:00 committed by Philip Chimento
parent 50b023e6c9
commit b6c2f55954
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ const validateNativeFunctionSource = function(source) {
// `/\p{Space_Separator}/u` // `/\p{Space_Separator}/u`
const UnicodeSpaceSeparator = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/; const UnicodeSpaceSeparator = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
const isNewline = (c) => /[\u000A\u000D\u2028\u2029]/u.test(c); const isNewline = (c) => /[\u000A\u000D\u2028\u2029]/.test(c);
const isWhitespace = (c) => /[\u0009\u000B\u000C\u0020\u00A0\uFEFF]/u.test(c) || UnicodeSpaceSeparator.test(c); const isWhitespace = (c) => /[\u0009\u000B\u000C\u0020\u00A0\uFEFF]/.test(c) || UnicodeSpaceSeparator.test(c);
let pos = 0; let pos = 0;