mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 13:40:46 +00:00
fix parse error
This commit is contained in:
parent
6d4a732257
commit
305d35e680
2 changed files with 11 additions and 17 deletions
|
|
@ -113,10 +113,7 @@ export class ShellProcessor implements IPromptProcessor {
|
|||
.replaceAll(SHORTHAND_ARGS_PLACEHOLDER, userArgsEscaped) // Replace {{args}}
|
||||
.replaceAll(
|
||||
'$ARGUMENTS',
|
||||
userArgsRaw
|
||||
.split(' ')
|
||||
.map((arg) => escapeShellArg(arg, shell))
|
||||
.join(' '),
|
||||
userArgsRaw.replace(/^'([\s\S]*?)'$/, '$1'),
|
||||
);
|
||||
return { ...injection, resolvedCommand };
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue