Match matches a query with the identity name, login and ID prefixes
(query string)
| 60 | |
| 61 | // Match matches a query with the identity name, login and ID prefixes |
| 62 | func (i *IdentityExcerpt) Match(query string) bool { |
| 63 | return i.id.HasPrefix(query) || |
| 64 | strings.Contains(strings.ToLower(i.Name), query) || |
| 65 | strings.Contains(strings.ToLower(i.Login), query) |
| 66 | } |
| 67 | |
| 68 | /* |
| 69 | * Sorting |