From 8af3d22d063bbfda7f45a3e13a3ac73a9ff8c6e3 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 15 Jan 2022 16:52:26 +0100 Subject: [PATCH] Problem: keywords could not contain a space Solution: allow space in keywords --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index dc3d759..ceb60ef 100644 --- a/main.go +++ b/main.go @@ -741,7 +741,7 @@ func (h *graphHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { defer r.Body.Close() - metaKV, err := regexp.Compile(`(\w+)::\s+(.*)`) + metaKV, err := regexp.Compile(`(\w[ \w]+)::\s+(.*)`) if err != nil { log.Fatal(err) }