This commit is contained in:
shoopea 2020-10-17 18:08:30 +02:00
parent cd5b0321fd
commit 5aaffdc789

3
msg.go
View File

@ -475,7 +475,8 @@ func parseSubTypeMessageGListAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar
re := regexp.MustCompile(`\n#(?P<Id>[0-9]+) (?P<Class1>[⚒⚗️📦🏹⚔️🛡])(?P<Class2>[⚒⚗️📦🏹⚔️🛡]{0,1})(?P<Level>[0-9]+) \\[(?P<Status>.*)\\] (?P<Name>[a-zA-z0-9 ]+)`) re := regexp.MustCompile(`\n#(?P<Id>[0-9]+) (?P<Class1>[⚒⚗️📦🏹⚔️🛡])(?P<Class2>[⚒⚗️📦🏹⚔️🛡]{0,1})(?P<Level>[0-9]+) \\[(?P<Status>.*)\\] (?P<Name>[a-zA-z0-9 ]+)`)
for _, l := range re.FindAllString(r.ReplaceAllString(m.Text, "${Members}"), -1) { for _, l := range re.FindAllString(r.ReplaceAllString(m.Text, "${Members}"), -1) {
log.Printf("parseSubTypeMessageGListAck : %d : %s/%s : %s [%d] => %s\n") //log.Printf("parseSubTypeMessageGListAck : %d : %s/%s : %s [%d] => %s\n")
log.Printf("parseSubTypeMessageGListAck : %s\n", l)
} }
return &cwm, nil return &cwm, nil