aboutsummaryrefslogtreecommitdiffstats
path: root/cache/filter.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-10 18:16:16 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-10 18:18:00 +0200
commit9bb980e9de1ec3764069ae70baf0c2458e7c35a4 (patch)
treeae6daa547ebcd37fcb93419da0e54d2187f0c667 /cache/filter.go
parentfd21de5632fda2bbc030d34c28e9dfc1403d2497 (diff)
downloadgit-bug-9bb980e9de1ec3764069ae70baf0c2458e7c35a4.tar.gz
ls: support expressing a query with flags as well
Diffstat (limited to 'cache/filter.go')
-rw-r--r--cache/filter.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/cache/filter.go b/cache/filter.go
index 3bcfe13e..033df131 100644
--- a/cache/filter.go
+++ b/cache/filter.go
@@ -1,8 +1,6 @@
package cache
import (
- "strings"
-
"github.com/MichaelMure/git-bug/bug"
)
@@ -23,12 +21,8 @@ func StatusFilter(query string) (Filter, error) {
// AuthorFilter return a Filter that match a bug author
func AuthorFilter(query string) Filter {
- cleaned := strings.TrimFunc(query, func(r rune) bool {
- return r == '"' || r == '\''
- })
-
return func(excerpt *BugExcerpt) bool {
- return excerpt.Author.Match(cleaned)
+ return excerpt.Author.Match(query)
}
}