Commit 8baccbe
Fix @ref/@page regex to support hyphenated IDs
The \w+ pattern stopped at hyphens, so @page getting-started was
extracted as "getting" and @ref cli-reference as "cli". Use [\w-]+
to match the full hyphenated identifiers. Remove the cli-reference
hardcoded workaround that was papering over this bug.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent dae98ab commit 8baccbe
1 file changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
| 371 | + | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| |||
0 commit comments