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 | |
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')
-rw-r--r-- | ext/node/polyfills/internal/cli_table.ts | 26 | ||||
-rw-r--r-- | ext/node/polyfills/path/glob.ts | 4 |
2 files changed, 16 insertions, 14 deletions
diff --git a/ext/node/polyfills/internal/cli_table.ts b/ext/node/polyfills/internal/cli_table.ts index dd49a44a1..a3740d889 100644 --- a/ext/node/polyfills/internal/cli_table.ts +++ b/ext/node/polyfills/internal/cli_table.ts @@ -9,19 +9,19 @@ import { getStringWidth } from "ext:deno_node/internal/util/inspect.mjs"; // core to verify that Unicode characters work in built-ins. // Refs: https://github.com/nodejs/node/issues/10673 const tableChars = { - middleMiddle: "─", - rowMiddle: "┼", - topRight: "┐", - topLeft: "┌", - leftMiddle: "├", - topMiddle: "┬", - bottomRight: "┘", - bottomLeft: "└", - bottomMiddle: "┴", - rightMiddle: "┤", - left: "│ ", - right: " │", - middle: " │ ", + middleMiddle: "\u2500", + rowMiddle: "\u253c", + topRight: "\u2510", + topLeft: "\u250c", + leftMiddle: "\u251c", + topMiddle: "\u252c", + bottomRight: "\u2518", + bottomLeft: "\u2514", + bottomMiddle: "\u2534", + rightMiddle: "\u2524", + left: "\u2502 ", + right: " \u2502", + middle: " \u2502 ", }; const renderRow = (row: string[], columnWidths: number[]) => { 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"; |