diff options
author | claudiahdz <cghr1990@gmail.com> | 2019-09-03 17:51:04 -0500 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-09-17 18:51:21 -0700 |
commit | 17e420b23f5462db9f1951d98233fdaee889c721 (patch) | |
tree | c0f855138f734517aeba81000ebeac9d6e271563 /deps/npm/lib/utils/escape-exec-path.js | |
parent | 7fa03b54c88f930d24f2f0e2ceb0e94dc5a6ad77 (diff) | |
download | node-new-17e420b23f5462db9f1951d98233fdaee889c721.tar.gz |
deps: update npm to 6.11.3
PR-URL: https://github.com/nodejs/node/pull/29430
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'deps/npm/lib/utils/escape-exec-path.js')
-rw-r--r-- | deps/npm/lib/utils/escape-exec-path.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/lib/utils/escape-exec-path.js b/deps/npm/lib/utils/escape-exec-path.js index bf94886efa..42b6493486 100644 --- a/deps/npm/lib/utils/escape-exec-path.js +++ b/deps/npm/lib/utils/escape-exec-path.js @@ -1,6 +1,6 @@ 'use strict' var path = require('path') -var isWindowsShell = require('./is-windows-shell.js') +var isWindows = require('./is-windows.js') /* Escape the name of an executable suitable for passing to the system shell. @@ -20,7 +20,7 @@ function windowsQuotes (str) { } function escapify (str) { - if (isWindowsShell) { + if (isWindows) { return path.normalize(str).split(/\\/).map(windowsQuotes).join('\\') } else if (/[^-_.~/\w]/.test(str)) { return "'" + str.replace(/'/g, "'\"'\"'") + "'" |