fix: filter out emojis with underscores

When displaying the username also filter out the emojis with
underscores.
This commit is contained in:
Dan Anglin 2024-06-09 17:24:07 +01:00
parent db16e4aa16
commit b48fac3341
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -35,7 +35,7 @@ func FieldFormat(noColor bool, text string) string {
func FullDisplayNameFormat(noColor bool, displayName, acct string) string {
// use this pattern to remove all emoji strings
pattern := regexp.MustCompile(`\s:[A-Za-z0-9]*:`)
pattern := regexp.MustCompile(`\s:[A-Za-z0-9_]*:`)
var builder strings.Builder