Repository navigation
Commit 594f097
test(web): pin highlighting for queries with leading or trailing punctuation
PHP's preg_split gives an empty piece for 'faith charity!', and its
per-word pattern then wraps every word and inserts empty spans. Node drops
the empty piece and wraps only words that start like a query word; the
comment at the prefix set records this as an intended difference, and a
test pins Node's output. Also notes that an empty piece matches any one
word, so the MAX_GAP cap limits a gap to 8 words.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 48f83e1 commit 594f097
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| |||
0 commit comments