Skip to content

Commit 9a465bb

Browse files
committed
fix: trim whitespace when adding patterns in extractFromTokens function
1 parent b3068fb commit 9a465bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/utils/command-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ function extractFromTokens(tokens: string[], patterns: Set<string>): void {
6363
if (typeof arg !== "string" || breakingExps.some((re) => re.test(arg))) break
6464

6565
const pattern = tokens.slice(0, i + 1).join(" ")
66-
patterns.add(pattern)
66+
patterns.add(pattern.trim())
6767
}
6868
}

0 commit comments

Comments
 (0)