test
This commit is contained in:
parent
8b11e3ecef
commit
a2befac211
2
obj.go
2
obj.go
@ -624,7 +624,7 @@ func silentGetObjItemID(code string, name string) int64 {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
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("%s => Found a match for %s : %s\n", m, n2, s)
|
log.Printf("%s => Found a match for %s : %s\n", m, n2, s)
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user