test
This commit is contained in:
parent
2000c727ba
commit
33c01fa77e
4
msg.go
4
msg.go
@ -33,8 +33,8 @@ func parseSubTypeMessageReportAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
|
|||||||
func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageStock, error) {
|
func parseSubTypeMessageGStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageStock, error) {
|
||||||
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 s := range re.FindAllString(r.ReplaceAllString(m.Text, "${Stock}"), -1) {
|
for s := range re.FindAllString(r.ReplaceAllString(m.Text, "${Stock}"), -1) {
|
||||||
log.Printf("parseSubTypeMessageGStockAnyAck : %s\n", s)
|
log.Printf("parseSubTypeMessageGStockAnyAck : %s\n", s)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user