mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 12:51:17 -05:00
Revert
This commit is contained in:
@@ -1569,21 +1569,21 @@ export class ClaudeDev {
|
||||
|
||||
// Try to match a parameter tag with content, even if the closing tag is missing or partial
|
||||
// matches <paramName> and rest of line as paramContent
|
||||
const paramMatch = trimmed.match(/^<(\w+)>(.*)$/)
|
||||
if (paramMatch) {
|
||||
const paramName = paramMatch[1] as ToolParamName
|
||||
let paramContent = paramMatch[2]
|
||||
// const paramMatch = trimmed.match(/^<(\w+)>(.*)$/)
|
||||
// if (paramMatch) {
|
||||
// const paramName = paramMatch[1] as ToolParamName
|
||||
// let paramContent = paramMatch[2]
|
||||
|
||||
// Remove any closing tag or partial closing tag from paramContent
|
||||
// replaces any sequence that starts with </ (a closing tag) to the end of the line with an empty string
|
||||
paramContent = paramContent?.replace(/<\/.*$/, "").trim()
|
||||
// // Remove any closing tag or partial closing tag from paramContent
|
||||
// // replaces any sequence that starts with </ (a closing tag) to the end of the line with an empty string
|
||||
// paramContent = paramContent?.replace(/<\/.*$/, "").trim()
|
||||
|
||||
if (paramName && paramContent && toolParamNames.includes(paramName)) {
|
||||
currentToolUse.params[paramName] = paramContent
|
||||
}
|
||||
// if (paramName && paramContent && toolParamNames.includes(paramName)) {
|
||||
// currentToolUse.params[paramName] = paramContent
|
||||
// }
|
||||
|
||||
// Assuming the entire parameter is on this line, we don't need to set currentParamName
|
||||
}
|
||||
// // Assuming the entire parameter is on this line, we don't need to set currentParamName
|
||||
// }
|
||||
|
||||
// If no param name, assume it's a partial and wait for more output
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user