update valentine

This commit is contained in:
shoopea 2020-02-15 14:32:35 +08:00
parent 210ed6bff7
commit 397eabc025

2
msg.go
View File

@ -142,7 +142,7 @@ func parseSubTypeMessageStockAck(m *ChatWarsMessage, r *regexp.Regexp) (*ChatWar
cwm := ChatWarsMessageStockAck{} cwm := ChatWarsMessageStockAck{}
items := []ChatWarsItems{} items := []ChatWarsItems{}
re := regexp.MustCompile(`\n([a-zA-Z ❄️]+) \(([0-9]+)\)`) re := regexp.MustCompile(`\n([a-zA-Z ❄️💘]+) \(([0-9]+)\)`)
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Items}"), -1) { for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Items}"), -1) {
i := getObjItemID(``, l[1]) i := getObjItemID(``, l[1])
q, _ := strconv.ParseInt(l[2], 10, 64) q, _ := strconv.ParseInt(l[2], 10, 64)