Fix tags with values containing =

This commit is contained in:
OHASHI Hideya 2023-12-24 14:46:35 +09:00 committed by fiatjaf_
parent f295f130f2
commit 8373da647e

View File

@ -78,7 +78,7 @@ var count = &cli.Command{
tags := make([][]string, 0, 5) tags := make([][]string, 0, 5)
for _, tagFlag := range c.StringSlice("tag") { for _, tagFlag := range c.StringSlice("tag") {
spl := strings.Split(tagFlag, "=") spl := strings.SplitN(tagFlag, "=", 2)
if len(spl) == 2 && len(spl[0]) == 1 { if len(spl) == 2 && len(spl[0]) == 1 {
tags = append(tags, spl) tags = append(tags, spl)
} else { } else {