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

2
msg.go
View File

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