From 9afb5345ac614ca414c81527eb7d6bfbd46fd9d3 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 13 Dec 2019 20:11:40 +0800 Subject: [PATCH] fix quality obj matching --- obj.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obj.go b/obj.go index 8a577f0..e78c2c4 100644 --- a/obj.go +++ b/obj.go @@ -735,7 +735,7 @@ func getSilentObjItemID(code string, name string) int64 { //log.Printf("Matching item name %s with %s.\n", name, obj.Name) return obj.ObjID64 } - if ok, _ := regexp.MatchString(`^a[0-9]+[a-e])$`, code); ok { + if ok, _ := regexp.MatchString(`^a[0-9]+[a-e]$`, code); ok { code2 := code[:len(code)-1] log.Printf("Matching quality item code %s with %s.\n", code, code2) if obj, ok := cacheObjItem[code2]; ok {