We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee5268 commit ddf5319Copy full SHA for ddf5319
src/services/tools/bash.ts
@@ -44,7 +44,7 @@ function validateScript(script: string, config: ToolConfiguration): BashToolResu
44
}
45
46
// Detect redundant cd to working directory
47
- const cdPattern = /^\s*cd\s+['"]?([^'\";&|]+)['"]?\s*[;&|]/;
+ const cdPattern = /^\s*cd\s+['"]?([^'";&|]+)['"]?\s*[;&|]/;
48
const match = cdPattern.exec(script);
49
if (match) {
50
const targetPath = match[1].trim();
0 commit comments