From 086f2d83c6d5648e63b263e63899adbb52145ffe Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 20 Oct 2019 20:13:51 +0800 Subject: [PATCH] update --- msg.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/msg.go b/msg.go index 1cd49b5..f8c0865 100644 --- a/msg.go +++ b/msg.go @@ -432,7 +432,9 @@ func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp) re := regexp.MustCompile(`([0-9] x ){0,1}([a-zA-Z ]*) lvl\.([0-9]*)`) for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Monsters}"), -1) { - log.Printf("parseSubTypeMessageQuestResultAmbush : %v\n", l) + log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[1]) + log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[2]) + log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[3]) } cwm.Msg = m return &cwm, nil