test
This commit is contained in:
parent
0bddf31881
commit
19da93063e
4
obj.go
4
obj.go
@ -626,10 +626,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)
|
||||
log.Printf("Found a match for %s : %s\n", n2, s)
|
||||
return false
|
||||
} else {
|
||||
log.Printf("Match still not found %s : %s\n", name, i.Name)
|
||||
log.Printf("Match still not found %s : %s\n", n2, s)
|
||||
i = ChatWarsItem{
|
||||
ObjID64: 0,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user