This commit is contained in:
shoopea 2019-10-20 20:12:09 +08:00
parent 684dc2cb5f
commit 2b1f8001c1

2
msg.go
View File

@ -430,7 +430,7 @@ func parseSubTypeMessageDuelFight(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWa
func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageQuestResultAmbush, error) {
cwm := ChatWarsMessageQuestResultAmbush{}
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) {
log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[1])
}