test
This commit is contained in:
parent
3989da0c4c
commit
ba36c16135
2
obj.go
2
obj.go
@ -625,8 +625,10 @@ func silentGetObjItemID(code string, name string) int64 {
|
|||||||
s := strings.ToUpper(regexp.QuoteMeta(i.Name))
|
s := strings.ToUpper(regexp.QuoteMeta(i.Name))
|
||||||
m := fmt.Sprintf("^(%s.*|.*%s)$ ", s, s)
|
m := fmt.Sprintf("^(%s.*|.*%s)$ ", s, s)
|
||||||
if ok, _ := regexp.MatchString(m, n2); ok {
|
if ok, _ := regexp.MatchString(m, n2); ok {
|
||||||
|
log.Printf("Found a match for %s : %s\n", name, i.Name)
|
||||||
return false
|
return false
|
||||||
} else {
|
} else {
|
||||||
|
log.Printf("Match still not found %s : %s\n", name, i.Name)
|
||||||
i = ChatWarsItem{
|
i = ChatWarsItem{
|
||||||
ObjID64: 0,
|
ObjID64: 0,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user