mirror of
https://code.forgejo.org/actions/setup-go.git
synced 2026-08-29 05:24:58 -04:00
Fix.
This commit is contained in:
parent
ffce9ce43f
commit
a966e84ff9
6749 changed files with 937824 additions and 462 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 = 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, '/');
|
||||
};
|
||||
Loading…
Reference in a new issue