fix search logic to match new mention matching logic

Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
kim 2021-10-17 11:43:28 +01:00
commit aaf20de797
2 changed files with 16 additions and 24 deletions

View file

@ -77,8 +77,3 @@ func ExtractMentionParts(mention string) (username, domain string, err error) {
return "", "", fmt.Errorf("couldn't match mention %s", mention)
}
}
// IsMention returns true if the passed string looks like @whatever@example.org
func IsMention(mention string) bool {
return regexes.MentionName.MatchString(strings.ToLower(mention))
}