fix: normalize Windows exec allowlist paths
This commit is contained in:
parent
ea79b26b79
commit
4b19066cc1
1 changed files with 4 additions and 0 deletions
|
|
@ -409,6 +409,10 @@ export function resolveCommandResolutionFromArgv(
|
|||
}
|
||||
|
||||
function normalizeMatchTarget(value: string): string {
|
||||
if (process.platform === "win32") {
|
||||
const stripped = value.replace(/^\\\\[?.]\\/, "");
|
||||
return stripped.replace(/\\/g, "/").toLowerCase();
|
||||
}
|
||||
return value.replace(/\\\\/g, "/").toLowerCase();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue