This commit is contained in:
shoopea 2019-06-14 12:33:27 +08:00
parent 3989da0c4c
commit ba36c16135

2
obj.go
View File

@ -625,8 +625,10 @@ func silentGetObjItemID(code string, name string) int64 {
s := strings.ToUpper(regexp.QuoteMeta(i.Name))
m := fmt.Sprintf("^(%s.*|.*%s)$ ", s, s)
if ok, _ := regexp.MatchString(m, n2); ok {
log.Printf("Found a match for %s : %s\n", name, i.Name)
return false
} else {
log.Printf("Match still not found %s : %s\n", name, i.Name)
i = ChatWarsItem{
ObjID64: 0,
}