This commit is contained in:
shoopea 2019-06-14 12:56:45 +08:00
parent 1e17576004
commit cb6d876c14

2
obj.go
View File

@ -626,10 +626,8 @@ 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("%s => Found a match for %s : %s\n", m, n2, s)
return false
} else {
log.Printf("`%s` => Match still not found `%s` : `%s`\n", m, n2, s)
i = ChatWarsItem{
ObjID64: 0,
}