8ed6d065 by astaxie

fix the regexps bugs

1 parent b5a2347e
Showing 1 changed file with 4 additions and 0 deletions
......@@ -106,8 +106,12 @@ func filterTreeWithPrefix(t *Tree, wildcards []string, reg string) {
filterCards = append(filterCards, v)
}
l.wildcards = filterCards
if l.regexps != nil {
l.regexps = regexp.MustCompile("^" + reg + strings.Trim(l.regexps.String(), "^$") + "$")
} else {
l.regexps = regexp.MustCompile("^" + reg + "$")
}
} else {
if l.regexps != nil {
filterCards := []string{}
for _, v := range l.wildcards {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!