Skip to content

Commit 23f3b47

Browse files
authored
Fix a crash in extractArgs (#10394)
1 parent 7d73a31 commit 23f3b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ function extractArgs(argsString: string): string[] {
991991
}
992992
const still_escaping: boolean = (backslashCount % 2) !== 0;
993993
if (!reachedEnd && c === '\"') {
994-
backslashCount /= 2;
994+
backslashCount = Math.floor(backslashCount / 2);
995995
}
996996
while (backslashCount--) {
997997
currentArg += '\\';

0 commit comments

Comments
 (0)