From 464766a8365dc7f10e152cb5ace46f2a50378e1e Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 27 Oct 2024 11:01:29 -0300 Subject: [PATCH] allow "=" in tag value. fixes https://github.com/fiatjaf/nak/issues/40 --- req.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/req.go b/req.go index 99dd1fb..62f666f 100644 --- a/req.go +++ b/req.go @@ -231,7 +231,7 @@ func applyFlagsToFilter(c *cli.Command, filter *nostr.Filter) error { } tags := make([][]string, 0, 5) for _, tagFlag := range c.StringSlice("tag") { - spl := strings.Split(tagFlag, "=") + spl := strings.SplitN(tagFlag, "=", 2) if len(spl) == 2 && len(spl[0]) == 1 { tags = append(tags, spl) } else {