user lookup bugfix
This commit is contained in:
parent
09266c9d51
commit
108583814e
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ func readFile(name, file string) (id string, err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
r := regexp.MustCompile(name + ":.*:(\\d+)")
|
r := regexp.MustCompile(name + `:.*?:(\d+):`)
|
||||||
m := r.FindAllStringSubmatch(string(b), 1)
|
m := r.FindAllStringSubmatch(string(b), 1)
|
||||||
if len(m) == 1 {
|
if len(m) == 1 {
|
||||||
if len(m[0]) == 2 {
|
if len(m[0]) == 2 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue