Commit 6a0a64e
fix(strategy-curator): split tags on commas instead of fusing them — Fixes #76
Add splitTags(raw) next to toDashed: commas and newlines are tag separators,
spaces within a segment stay word-joiners (toDashed). Route both entry points
through it — applyTag (source edit) loops one tag.apply per new tag;
StrategyPicker.addTag appends every split result to pendingTags. Suggestion
clicks pass a single token, which splitTags returns unchanged, so no
regression. Verified with `rsbuild build` — green.
"Quantum Computing, Computational Biology" now yields two chips
(Quantum-Computing, Computational-Biology) instead of one fused mega-tag.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018UYTYu4MAFZ7iyr2VTo2kq1 parent 1252534 commit 6a0a64e
2 files changed
Lines changed: 25 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
49 | 61 | | |
50 | 62 | | |
51 | 63 | | |
| |||
447 | 459 | | |
448 | 460 | | |
449 | 461 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
455 | 470 | | |
456 | 471 | | |
457 | 472 | | |
| |||
0 commit comments