Commit 5285d7d
Fix toSearchable to not strip mid-string "the" (completes #460)
PR #460 fixed the backend's to_searchable() (search/sanitisation.py) so
it no longer strips the word "the" from the middle of card names (issue
#435), but the frontend's hand-maintained mirror of that logic in
processing.ts was never updated to match, so it still mangled names like
"Adanto, the First Fort" into "adanto first fort" instead of the correct
"adanto the first fort". Removes the same two lines #460 removed from the
backend, and updates the test case that was asserting the buggy output.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 3c717d2 commit 5285d7d
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
505 | 508 | | |
506 | 509 | | |
507 | 510 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
392 | | - | |
393 | 392 | | |
394 | 393 | | |
395 | 394 | | |
396 | | - | |
397 | 395 | | |
398 | 396 | | |
399 | 397 | | |
| |||
0 commit comments