From b8d1e012da7fc193cf665b6102224bd5f0081a82 Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 7 Jun 2019 18:54:26 +0800 Subject: [PATCH] test --- obj.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obj.go b/obj.go index 1ba28b4..dbbfce5 100644 --- a/obj.go +++ b/obj.go @@ -525,7 +525,7 @@ func silentGetObjItemID(code string, name string) int64 { i := v.(ChatWarsItem) return i.ObjID64 } - if ok, _ := regexp.MatchString(`(u|a|e)[0-9]+`, c); ok { + if ok, _ := regexp.MatchString(`(u|a|e)[0-9]+[a-z]{0,1}`, c); ok { r := regexp.MustCompile(`^((?P⚡\+[0-9]+) ){0,1}(?P.+?)( \+(?P[0-9]+)⚔){0,1}( \+(?P[0-9]+)🛡){0,1}( \+(?P[0-9]+)💧){0,1}$`) n2 := r.ReplaceAllString(n, "${BaseName}") if v, ok := cacheObjItem.Load(n2); ok {