diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-03-22 19:34:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 19:34:14 -0600 |
commit | f69e4794d2d016c8cdbf4a4de8affd0c92f2732c (patch) | |
tree | d1a722cb30385126af0408416095321381f4b041 /ext/node/polyfills/path | |
parent | d06fdf6add1b3c55fc5f4a24956f17a363d513a4 (diff) |
chore: update ext/ code to only use ASCII (#18371)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/node/polyfills/path')
-rw-r--r-- | ext/node/polyfills/path/glob.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/node/polyfills/path/glob.ts b/ext/node/polyfills/path/glob.ts index c96965a67..de6c752d5 100644 --- a/ext/node/polyfills/path/glob.ts +++ b/ext/node/polyfills/path/glob.ts @@ -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"; |