Allow for two character emoji reactions, emoji plus modifier

main
Bob Mottram 2021-11-12 17:11:53 +00:00
parent 481b6f12f2
commit 5f8911d77a
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ def validEmojiContent(emojiContent: str) -> bool:
"""
if not emojiContent:
return False
if len(emojiContent) > 1:
if len(emojiContent) > 2:
return False
if len(emojiRegex.findall(emojiContent)) == 0:
return False

View File

@ -5914,7 +5914,7 @@ def _testValidEmojiContent() -> None:
assert not validEmojiContent(None)
assert not validEmojiContent(' ')
assert not validEmojiContent('j')
assert not validEmojiContent('😀😀')
assert not validEmojiContent('😀😀😀')
assert validEmojiContent('😀')
assert validEmojiContent('😄')