Adding missing node modules

This commit is contained in:
Drew Heavner committed 2020-11-13 16:25:03 -05:00
1 parent ff34f681c1
commit 64ce3ed0eb
3915 files changed
+667176

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
'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, '/');
};