From dff57c207ea2face6bdc923f4066b49dc1a21a53 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 7 Jun 2023 07:02:38 -0300 Subject: [PATCH] accept tags with keys of any length. --- event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.go b/event.go index b69ab8c..73ab6bd 100644 --- a/event.go +++ b/event.go @@ -85,7 +85,7 @@ standalone: tags := make([][]string, 0, 5) for _, tagFlag := range c.StringSlice("tag") { spl := strings.Split(tagFlag, "=") - if len(spl) == 2 && len(spl[0]) == 1 { + if len(spl) == 2 && len(spl[0]) > 0 { tags = append(tags, spl) } }