fix: filter out emojis with underscores
When displaying the username also filter out the emojis with underscores.
This commit is contained in:
parent
db16e4aa16
commit
b48fac3341
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ func FieldFormat(noColor bool, text string) string {
|
||||||
|
|
||||||
func FullDisplayNameFormat(noColor bool, displayName, acct string) string {
|
func FullDisplayNameFormat(noColor bool, displayName, acct string) string {
|
||||||
// use this pattern to remove all emoji strings
|
// 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
|
var builder strings.Builder
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue