From 9af22576502e20920e65e1c50e17c2c6908240c0 Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 10 Apr 2024 22:41:26 +0800 Subject: [PATCH] fix bug --- app/plugins/digest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/plugins/digest.go b/app/plugins/digest.go index d511b8c..0703e10 100644 --- a/app/plugins/digest.go +++ b/app/plugins/digest.go @@ -79,6 +79,7 @@ func ParseDigestConf(c DigestConfig) map[string]digest.SpecialSolveConf { var specialTags map[string]digest.SpecialSolve if len(item.EscapeCharacter) > 0 { ec = make(map[rune]digest.SpecialSolve) + specialTags = make(map[string]digest.SpecialSolve) for _, esc := range item.EscapeCharacter { for _, i := range esc.Character { s := []rune(i) @@ -93,7 +94,6 @@ func ParseDigestConf(c DigestConfig) map[string]digest.SpecialSolveConf { continue } tagss := strings.Split(strings.ReplaceAll(esc.Tags, " ", ""), "<") - specialTags = make(map[string]digest.SpecialSolve) for _, t := range tagss { if t == "" { continue