From 7b9286a77f7df649f94bdb14a645ef81a1a437f7 Mon Sep 17 00:00:00 2001 From: shoopea Date: Sun, 18 Oct 2020 11:47:32 +0200 Subject: [PATCH] test --- msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg.go b/msg.go index e56c770..1b2e9a0 100644 --- a/msg.go +++ b/msg.go @@ -477,6 +477,7 @@ func parseSubTypeMessageGListAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar re := regexp.MustCompile(`\n#(?P[0-9]+) (?P[โš’โš—๏ธ๐Ÿ“ฆ๐Ÿนโš”๏ธ๐Ÿ›ก])(?P[โš’โš—๏ธ๐Ÿ“ฆ๐Ÿนโš”๏ธ๐Ÿ›ก]{0,1})(?P[0-9]+) \[(?P.*)\] (?P[a-zA-z0-9 ]+)`) for _, l := range re.FindAllString(r.ReplaceAllString(m.Text, "${Members}"), -1) { + log.Printf("parseSubTypeMessageGListAck : %s\n", l) m := ChatWarsGuildMember{} m.Name = re.ReplaceAllString(l, "${Name}") m.Class1 = re.ReplaceAllString(l, "${Class1}") @@ -485,7 +486,6 @@ func parseSubTypeMessageGListAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar i, _ := strconv.ParseInt(r.ReplaceAllString(l, "${Level}"), 10, 64) m.Level = int(i) log.Printf("parseSubTypeMessageGListAck : %s : %s/%s [%d] => %s\n", m.Name, m.Class1, m.Class2, m.Level, m.Status) - //log.Printf("parseSubTypeMessageGListAck : %s\n", l) cwm.Members = append(cwm.Members, m) }