test
This commit is contained in:
parent
38df7c0d82
commit
8bd1f9e36e
2
msg.go
2
msg.go
@ -34,7 +34,7 @@ func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*Cha
|
|||||||
cwm := ChatWarsMessageStock{}
|
cwm := ChatWarsMessageStock{}
|
||||||
log.Printf("parseSubTypeMessageGStockAnyAck : GStock Any Ack identified\n")
|
log.Printf("parseSubTypeMessageGStockAnyAck : GStock Any Ack identified\n")
|
||||||
// log.Printf("parseSubTypeMessageGStockAnyAck : Stock : %s\n", r.ReplaceAllString(m.Text, "${Stock}"))
|
// log.Printf("parseSubTypeMessageGStockAnyAck : Stock : %s\n", r.ReplaceAllString(m.Text, "${Stock}"))
|
||||||
re := regexp.MustCompile(`(\n([0-9a-z]+) (.*) x ([0-9]+))`)
|
re := regexp.MustCompile(`\n([0-9a-z]+) (.*) x ([0-9]+)`)
|
||||||
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stock}"), -1) {
|
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Stock}"), -1) {
|
||||||
log.Printf("parseSubTypeMessageGStockAnyAck : %q\n", l)
|
log.Printf("parseSubTypeMessageGStockAnyAck : %q\n", l)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user