Skip to content

Commit ae8e14f

Browse files
committed
stringUtils.ts: convert backwards to forward slashes on non-Windows platforms
\\ as path separator is Windows-specific. Keep them unmodified there, otherwise normalize to forward slashes. Signed-off-by: Francesco Giancane <me@fgiancane8.dev>
1 parent a3d46e4 commit ae8e14f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension/common/stringUtils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@ export function fileToCommandArgumentForPythonExt(source: string): string {
5858
if (!source) {
5959
return source;
6060
}
61-
return toCommandArgumentForPythonExt(source).replace(/\\/g, '/');
61+
62+
let result = toCommandArgumentForPythonExt(source);
63+
64+
return result;
6265
}

0 commit comments

Comments
 (0)