user lookup bugfix

This commit is contained in:
ston1th 2017-04-20 15:17:45 +02:00
commit 108583814e

View file

@ -24,7 +24,7 @@ func readFile(name, file string) (id string, err error) {
if err != nil {
return
}
r := regexp.MustCompile(name + ":.*:(\\d+)")
r := regexp.MustCompile(name + `:.*?:(\d+):`)
m := r.FindAllStringSubmatch(string(b), 1)
if len(m) == 1 {
if len(m[0]) == 2 {