fix typo
This commit is contained in:
parent
7a6864a88a
commit
01ef73c11d
3
msg.go
3
msg.go
@ -61,7 +61,7 @@ func parseSubTypeMessageStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*Chat
|
|||||||
|
|
||||||
re := regexp.MustCompile(`(📃){0,1}([a-zA-Z ]+) \(([0-9]+)\)( /view_[a-z0-9]+){0,1}\n{0,1}`)
|
re := regexp.MustCompile(`(📃){0,1}([a-zA-Z ]+) \(([0-9]+)\)( /view_[a-z0-9]+){0,1}\n{0,1}`)
|
||||||
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Items}"), -1) {
|
for _, l := range re.FindAllStringSubmatch(r.ReplaceAllString(m.Text, "${Items}"), -1) {
|
||||||
// fmt.Printf("parseSubTypeMessageStockAnyAck : %+q\n", l)
|
// fmt.Printf("parseSubTypeMessageStockAnyAck : %+q\n", l)
|
||||||
i := getObjItemID(``, l[2])
|
i := getObjItemID(``, l[2])
|
||||||
q, _ := strconv.ParseInt(l[3], 10, 64)
|
q, _ := strconv.ParseInt(l[3], 10, 64)
|
||||||
if i != 0 {
|
if i != 0 {
|
||||||
@ -71,7 +71,6 @@ func parseSubTypeMessageStockAnyAck(m *ChatWarsMessage, r *regexp.Regexp) (*Chat
|
|||||||
}
|
}
|
||||||
items = append(items, item)
|
items = append(items, item)
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cwm.Stock = items
|
cwm.Stock = items
|
||||||
|
Loading…
Reference in New Issue
Block a user