matrix-react-sdk
b315ed63 - Match by emoji ascii regex first before shorthand

Commit
8 years ago
Match by emoji ascii regex first before shorthand Plaintext emojis that start with ":" will also match against the shorthand regex but the match won't include the important part of the plaintext emoji. This means some emoji like ":)" won't be matched. To fix this, put the ascii emoji regex first so that the match will be plaintext or otherwise it will fall through to the shorthand match (if there is one). Fixes https://github.com/vector-im/riot-web/issues/4467
Author
Luke Barnard
Parents
Loading