Repository navigation
Commit 54c5641
fix(hub): CI link audit accepts bare ../learnstack directory link
The follow-up CI fix in 917f7ec used `^(\.\./)+learnstack/` which requires
a trailing slash after `learnstack` — bare directory links like
`[LearnStack core](../learnstack)` (CONTRIBUTING.md:3) failed the audit:
BROKEN: CONTRIBUTING.md → ../learnstack
Error: 1 broken relative link(s) in changed Markdown.
Relaxed the regex to `^(\.\./)+learnstack(/|$)` so it matches both
`../learnstack` (bare root link) and `../learnstack/...` (path into the
sibling repo). The boundary is still tight — `../learnstackish/foo` does
not match (the regex anchors `learnstack` at a `/` or end-of-string).
Smoke-tested locally:
../learnstack → MATCH
../learnstack/foo.md → MATCH
../../../learnstack → MATCH
../../learnstack/ → MATCH
../other → NOMATCH
../learnstackish/foo → NOMATCH
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 917f7ec commit 54c5641
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| |||
0 commit comments