test quality code matching
This commit is contained in:
parent
43cc18301a
commit
1a8ec40b34
4
obj.go
4
obj.go
@ -736,7 +736,9 @@ func getSilentObjItemID(code string, name string) int64 {
|
||||
return obj.ObjID64
|
||||
}
|
||||
if ok, _ := regexp.MatchString(`^a[0-9]+[a-e])$`, code); ok {
|
||||
if obj, ok := cacheObjItem[code[:len(code)-1]]; ok {
|
||||
code2 := code[:len(code)-1]
|
||||
log.Printf("Matching quality item code %s with %s.\n", code, code2)
|
||||
if obj, ok := cacheObjItem[code2]; ok {
|
||||
return obj.ObjID64
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user