diff --git a/obj.go b/obj.go index 739c476..765ba67 100644 --- a/obj.go +++ b/obj.go @@ -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