Commit b43614c
committed
Fix snippet expansion: strip ASR punctuation and reorder pipeline
Two issues prevented snippet triggers from matching:
1. Voxtral adds trailing punctuation (e.g., "Snippet email
signature.") which made the trigger comparison fail. Now strip
punctuation from both the lowered command and the extracted
trigger before matching.
2. Replacements ran before snippet resolution, so a replacement
could corrupt a command prefix or trigger word. Now snippets
are checked first on the raw text. If a snippet matches, skip
replacements on the expanded content.
Made-with: Cursor1 parent 2b7fc3c commit b43614c
1 file changed
Lines changed: 11 additions & 5 deletions
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | | - | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
151 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
| |||
0 commit comments