--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
11
node_modules/slash/index.js
generated
vendored
Normal file
11
node_modules/slash/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
module.exports = function (str) {
|
||||
var isExtendedLengthPath = /^\\\\\?\\/.test(str);
|
||||
var hasNonAscii = /[^\x00-\x80]+/.test(str);
|
||||
|
||||
if (isExtendedLengthPath || hasNonAscii) {
|
||||
return str;
|
||||
}
|
||||
|
||||
return str.replace(/\\/g, '/');
|
||||
};
|
||||
Loading…
Reference in a new issue