diff options
Diffstat (limited to 'deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/string-width/index.js')
-rw-r--r-- | deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/string-width/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/string-width/index.js b/deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/string-width/index.js index 25a8943c1d..1f8a1f1134 100644 --- a/deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/string-width/index.js +++ b/deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/string-width/index.js @@ -14,12 +14,12 @@ module.exports = str => { for (let i = 0; i < str.length; i++) { const code = str.codePointAt(i); - // ignore control characters - if (code <= 0x1f || (code >= 0x7f && code <= 0x9f)) { + // Ignore control characters + if (code <= 0x1F || (code >= 0x7F && code <= 0x9F)) { continue; } - // surrogates + // Surrogates if (code >= 0x10000) { i++; } |