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