This commit is contained in:
Stephen Franceschelli
2019-07-15 11:41:38 -04:00
parent f26956e368
commit 9098200950
7043 changed files with 0 additions and 1866383 deletions

View File

@@ -1,11 +0,0 @@
'use strict';
module.exports = input => {
const isExtendedLengthPath = /^\\\\\?\\/.test(input);
const hasNonAscii = /[^\u0000-\u0080]+/.test(input); // eslint-disable-line no-control-regex
if (isExtendedLengthPath || hasNonAscii) {
return input;
}
return input.replace(/\\/g, '/');
};