change url to archive mirror

This commit is contained in:
stCarolas committed 2020-02-03 13:46:22 +03:00
1 parent fbb2b0cc60
commit 66602c7280
690 files changed
+1017813 -2

No files matched your search

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