fix: normalize Windows exec allowlist paths

This commit is contained in:
Peter Steinberger 2026-01-23 03:11:41 +00:00
parent 487cd76a97
commit 975ec0015c

View File

@ -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();
}