diff options
-rw-r--r-- | cache/filter.go | 12 | ||||
-rw-r--r-- | doc/queries.md | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/cache/filter.go b/cache/filter.go index 7b1a6054..b26e7ae1 100644 --- a/cache/filter.go +++ b/cache/filter.go @@ -66,12 +66,12 @@ func ActorFilter(query string) Filter { panic("missing identity in the cache") } - if strings.Contains(strings.ToLower(identityExcerpt.Name), query) || - query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) { + if query == identityExcerpt.Id || + strings.Contains(strings.ToLower(identityExcerpt.Name), query) || + query == strings.ToLower(identityExcerpt.Login) { return true } } - return false } } @@ -87,12 +87,12 @@ func ParticipantFilter(query string) Filter { panic("missing identity in the cache") } - if strings.Contains(strings.ToLower(identityExcerpt.Name), query) || - query == identityExcerpt.Id || query == strings.ToLower(identityExcerpt.Login) { + if query == identityExcerpt.Id || + strings.Contains(strings.ToLower(identityExcerpt.Name), query) || + query == strings.ToLower(identityExcerpt.Login) { return true } } - return false } } diff --git a/doc/queries.md b/doc/queries.md index 857600e8..b93941d1 100644 --- a/doc/queries.md +++ b/doc/queries.md @@ -35,7 +35,7 @@ You can filter based on the person who opened the bug. ### Filtering by participant -You can filter based on the person who participated in the bug (Opened the bug or added a comment). +You can filter based on the person who participated in any activity related to the bug (Opened bug or added a comment). | Qualifier | Example | | --- | --- | |