From 38ba03b7935d2011aed5a5cec56e7786248ce301 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 29 Feb 2020 17:25:58 +0800 Subject: [PATCH] debug --- msg.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/msg.go b/msg.go index df42619..fffadde 100644 --- a/msg.go +++ b/msg.go @@ -100,6 +100,8 @@ func parseSubTypeMessageAlchStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha cwm := ChatWarsMessageStockAnyAck{} items := []ChatWarsItems{} + log.Printf("parseSubTypeMessageAlchStockAck : Start\n") + re := regexp.MustCompile(`\n\/aa_([0-9]{2}) ([a-zA-Z ']+) x (?[0-9]+)`) for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stuff}"), -1) { log.Printf("parseSubTypeMessageAlchStockAck : %+q\n", l) @@ -115,6 +117,8 @@ func parseSubTypeMessageAlchStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha } } + log.Printf("parseSubTypeMessageAlchStockAck : Done\n") + cwm.Stock = items cwm.Msg = m return &cwm, nil