Commit b6a6a93
fix(scholar): match full wikilink token in phantom-row removal
The index-row repair matched broken targets with a bare ``[[{t}``
prefix, so a broken target that is a prefix of a valid entry's link
(e.g. broken ``global/python/use`` vs valid ``[[global/python/use-uv]]``)
would delete a row whose only link was the longer, valid one — an
integrity regression that silently destroys real catalog rows. Require
the full token boundary (``]]`` or the ``|`` alias separator) after the
target. Adds a regression test; the live ``some-fake-project`` phantom
(no alias) still removes correctly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5245864 commit b6a6a93
2 files changed
Lines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1234 | 1234 | | |
1235 | 1235 | | |
1236 | 1236 | | |
1237 | | - | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1238 | 1246 | | |
1239 | 1247 | | |
1240 | 1248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
0 commit comments