fix: enhance regex to correctly parse wrapper file paths for claude.exe

This commit is contained in:
Haileyesus
2026-05-04 18:51:23 +03:00
parent e89d2da5df
commit 5ad2876cd2
2 changed files with 15 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ function resolveClaudeWrapperBinary(
return null;
}
const matches = content.matchAll(/["']([^"'\\r\\n]*claude\.exe)["']/gi);
const matches = content.matchAll(/["']([^"'\\\r\n]*claude\.exe)["']/gi);
for (const match of matches) {
const rawTarget = match[1]
.replace(/^\$basedir[\\/]/i, '')