mirror of
https://github.com/Rudi9719/kbtui.git
synced 2026-08-03 08:06:45 +00:00
fixed error where unicode emojis were missing
This commit is contained in:
+2
-2
@@ -15,12 +15,12 @@ type emojiData struct {
|
||||
}
|
||||
|
||||
func emojiUnicodeConvert(s string) string {
|
||||
re := regexp.MustCompile(`:\w+:`)
|
||||
re := regexp.MustCompile(`:(\w+|([+-]\d)):`)
|
||||
return re.ReplaceAllStringFunc(s, renderUnicodeEmoji)
|
||||
}
|
||||
|
||||
func resolveRootEmojis(s string) string {
|
||||
re := regexp.MustCompile(`:\w+:`)
|
||||
re := regexp.MustCompile(`:(\w+|([+-]\d)):`)
|
||||
return re.ReplaceAllStringFunc(s, emojiRootLookup)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user