Commit 5000153
Fix FTS5 syntax errors when searching with punctuation characters (#2085)
* Initial plan
* Add failing tests for punctuation in search and fix FTS query escaping
Co-authored-by: myieye <12587509+myieye@users.noreply.github.com>
* Improve FTS query escaping to handle punctuation correctly
Co-authored-by: myieye <12587509+myieye@users.noreply.github.com>
* Address code review feedback - extract constants and improve matching logic
Co-authored-by: myieye <12587509+myieye@users.noreply.github.com>
* Simplify FTS5 escaping - always wrap user queries in quotes
Co-authored-by: myieye <12587509+myieye@users.noreply.github.com>
* Fix Non-FTS test cases to use < 3 character search terms
Co-authored-by: myieye <12587509+myieye@users.noreply.github.com>
* Simplify comments and interpolation
* Fix comment
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: myieye <12587509+myieye@users.noreply.github.com>
Co-authored-by: Tim Haasdyk <tim_haasdyk@sil.org>1 parent e7033b0 commit 5000153
File tree
2 files changed
+31
-2
lines changed- backend/FwLite
- LcmCrdt/FullTextSearch
- MiniLcm.Tests
2 files changed
+31
-2
lines changedLines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
60 | 70 | | |
61 | 71 | | |
62 | 72 | | |
| |||
243 | 253 | | |
244 | 254 | | |
245 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
246 | 259 | | |
247 | 260 | | |
248 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
441 | 457 | | |
442 | 458 | | |
443 | 459 | | |
| |||
0 commit comments