Commit d4ea48e
committed
fix: prevent duplicate command patterns by trimming full command
- Trim the full command before adding it to the pattern list in CommandPatternSelector
- This prevents duplicates when the command has trailing whitespace
- Ensures consistency with patterns extracted by extractPatternsFromCommand which are already trimmed
- Fixes issue introduced in PR #57981 parent c61bd95 commit d4ea48e
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments