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