This commit is contained in:
shoopea 2020-02-09 16:08:44 +08:00
parent f8487273ae
commit 257acdfa70

2
msg.go
View File

@ -177,7 +177,7 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
cwm := ChatWarsMessageReportAck{}
log.Printf("parseSubTypeMessageReport : Extra : %s\n", r.ReplaceAllString(m.Text, "${Extra}"))
re := regexp.MustCompile(`([.^\n]+)`)
for i, l := range re.FindAllStringSubmatch(, -1) {
for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) {
log.Printf("parseSubTypeMessageReport : Extra[%d] : %v\n", i, l)
}