aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/index/index.go
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2025-07-23 02:15:02 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2025-07-23 02:15:02 -0400
commit325b23a109527a8ff385889e47b5ea8a102e24db (patch)
treed3ae48becd060f93b805f186e6950646f19b6db3 /pkg/index/index.go
parent7ad00d3be99f69d105371ac21489a37a25e57457 (diff)
Fix link parsing regex
Diffstat (limited to 'pkg/index/index.go')
-rw-r--r--pkg/index/index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/index/index.go b/pkg/index/index.go
index 42f5051..8c21e72 100644
--- a/pkg/index/index.go
+++ b/pkg/index/index.go
@@ -463,5 +463,5 @@ func ParseDocs(paths []string, numWorkers uint, opts ParseOpts) (map[string]*Doc
}
func init() {
- linkRegex = regexp.MustCompile(`\[.*\]\(\s*([^\)]+)\s*\)`)
+ linkRegex = regexp.MustCompile(`\[.*\]\(\s*([^\)\s]+)\s*\)`)
}