From b48fac334130df3fd61fe15dcf2338efedb0cf20 Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Sun, 9 Jun 2024 17:24:07 +0100 Subject: [PATCH] fix: filter out emojis with underscores When displaying the username also filter out the emojis with underscores. --- internal/utilities/format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utilities/format.go b/internal/utilities/format.go index c64ab7f..9509e7b 100644 --- a/internal/utilities/format.go +++ b/internal/utilities/format.go @@ -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