This commit is contained in:
shoopea 2019-10-20 20:11:22 +08:00
parent 9bd437f1e8
commit 684dc2cb5f

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) { func parseSubTypeMessageQuestResultAmbush(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWarsMessageQuestResultAmbush, error) {
cwm := ChatWarsMessageQuestResultAmbush{} 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) { for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Monsters}"), -1) {
log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[1]) log.Printf("parseSubTypeMessageQuestResultAmbush : %s\n", l[1])
} }