mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: trim whitespace when adding patterns in extractFromTokens function
This commit is contained in:
parent
b3068fb4d9
commit
9a465bbcfd
1 changed files with 1 additions and 1 deletions
|
|
@ -63,6 +63,6 @@ function extractFromTokens(tokens: string[], patterns: Set<string>): void {
|
|||
if (typeof arg !== "string" || breakingExps.some((re) => re.test(arg))) break
|
||||
|
||||
const pattern = tokens.slice(0, i + 1).join(" ")
|
||||
patterns.add(pattern)
|
||||
patterns.add(pattern.trim())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue