This commit is contained in:
shoopea 2019-06-14 12:52:36 +08:00
parent 8b11e3ecef
commit a2befac211

2
obj.go
View File

@ -624,7 +624,7 @@ func silentGetObjItemID(code string, name string) int64 {
return true
}
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 {
log.Printf("%s => Found a match for %s : %s\n", m, n2, s)
return false