chore: update ext/ code to only use ASCII (#18371)

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Matt Mastracci 2023-03-22 19:34:14 -06:00 committed by GitHub
parent d06fdf6add
commit f69e4794d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 45 additions and 43 deletions

View file

@ -187,7 +187,9 @@ export function globToRegExp(
else if (value == "lower") segment += "a-z";
else if (value == "print") segment += "\x20-\x7E";
else if (value == "punct") {
segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_{|}~";
segment += "!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_";
segment += "\u2018";
segment += "{|}~";
} else if (value == "space") segment += "\\s\v";
else if (value == "upper") segment += "A-Z";
else if (value == "word") segment += "\\w";