test war report
This commit is contained in:
parent
84dae082fe
commit
0e421b05f5
6
msg.go
6
msg.go
@ -175,11 +175,9 @@ func parseSubTypeMessageStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar
|
||||
|
||||
func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageReportAck, error) {
|
||||
cwm := ChatWarsMessageReportAck{}
|
||||
re := regexp.MustCompile(`([.^\n]*)\n`)
|
||||
re := regexp.MustCompile(`([.^\n]+)`)
|
||||
for i, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Extra}"), -1) {
|
||||
if len(l[1]) > 0 {
|
||||
log.Printf("parseSubTypeMessageReport : Extra[%d] : %d => %s\n", i, len(l[1]), l[1])
|
||||
}
|
||||
log.Printf("parseSubTypeMessageReport : Extra[%d] : %v\n", i, l)
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user