Fix WSL UNC setup runner casing (#4139)
This commit is contained in:
@@ -20,12 +20,12 @@ export function buildSetupRunnerCommand(
|
||||
|
||||
function isWslUncPath(path: string): boolean {
|
||||
const normalized = path.replace(/\\/g, '/')
|
||||
return /^\/\/(wsl\.localhost|wsl\$)\//.test(normalized)
|
||||
return /^\/\/(wsl\.localhost|wsl\$)\//i.test(normalized)
|
||||
}
|
||||
|
||||
function wslUncToLinuxPath(windowsPath: string): string {
|
||||
const normalized = windowsPath.replace(/\\/g, '/')
|
||||
const match = normalized.match(/^\/\/(wsl\.localhost|wsl\$)\/[^/]+(\/.*)?$/)
|
||||
const match = normalized.match(/^\/\/(wsl\.localhost|wsl\$)\/[^/]+(\/.*)?$/i)
|
||||
return match?.[2] || '/'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user