Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
emoji sequence finder didn't support emojis with underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Nov 7, 2019
1 parent 0dfcfd8 commit cad3ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ func emojiSequenceIndexes(runes []rune) []int {
}
} else {
//Valid chars for emoji names
if !((char >= 'A' && char <= 'Z') || (char >= 'a' && char <= 'z') || (char >= '0' && char <= '9')) {
if !((char >= 'A' && char <= 'Z') || (char >= 'a' && char <= 'z') || (char >= '0' && char <= '9') || char == '_') {
//If invalid, jump out of loop
//Exception for exclamation marks
if !(char == '!' && j != 0 && runes[j-1] == ':') {
Expand Down

0 comments on commit cad3ff1

Please sign in to comment.