Fix Windows cmd quoting for Python

This commit is contained in:
2026-05-02 20:56:40 +09:00
parent 39efd3aeed
commit f0f62c2307

View File

@@ -27,6 +27,9 @@ function splitCommand(command: string): string[] {
}
function quoteWindowsCmdArg(value: string): string {
if (!/[ \t"&()<>^|]/.test(value)) {
return value;
}
return `"${value.replace(/"/g, '""')}"`;
}