update
This commit is contained in:
parent
6a19a629f4
commit
66d81297dc
3
item.go
3
item.go
@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
@ -140,7 +141,7 @@ func getSilentObjItemID(code string, name string) int64 {
|
|||||||
//log.Printf("Matching item full basename %s with %s.\n", basename, obj.Name)
|
//log.Printf("Matching item full basename %s with %s.\n", basename, obj.Name)
|
||||||
return objItems[id].ObjID64
|
return objItems[id].ObjID64
|
||||||
}
|
}
|
||||||
i := -1
|
i := int64(-1)
|
||||||
for _, id := range cacheObjItem {
|
for _, id := range cacheObjItem {
|
||||||
if ok, _ := regexp.MatchString(`^(a|e|w)[0-9]+$`, objItems[id].Code); ok { //only gear can be custom named
|
if ok, _ := regexp.MatchString(`^(a|e|w)[0-9]+$`, objItems[id].Code); ok { //only gear can be custom named
|
||||||
m := fmt.Sprintf("^((%s.*)|(.*%s))$", regexp.QuoteMeta(objItems[id].Names[0]), regexp.QuoteMeta(objItems[id].Names[0]))
|
m := fmt.Sprintf("^((%s.*)|(.*%s))$", regexp.QuoteMeta(objItems[id].Names[0]), regexp.QuoteMeta(objItems[id].Names[0]))
|
||||||
|
Loading…
Reference in New Issue
Block a user