update
This commit is contained in:
parent
5e914ab16e
commit
086f2d83c6
4
msg.go
4
msg.go
@ -432,7 +432,9 @@ func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp)
|
|||||||
|
|
||||||
re := regexp.MustCompile(`([0-9] x ){0,1}([a-zA-Z ]*) lvl\.([0-9]*)`)
|
re := regexp.MustCompile(`([0-9] x ){0,1}([a-zA-Z ]*) lvl\.([0-9]*)`)
|
||||||
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Monsters}"), -1) {
|
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Monsters}"), -1) {
|
||||||
log.Printf("parseSubTypeMessageQuestResultAmbush : %v\n", l)
|
log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[1])
|
||||||
|
log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[2])
|
||||||
|
log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[3])
|
||||||
}
|
}
|
||||||
cwm.Msg = m
|
cwm.Msg = m
|
||||||
return &cwm, nil
|
return &cwm, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user