mirror of https://gitlab.com/bashrc2/epicyon
Allow for two character emoji reactions, emoji plus modifier
parent
481b6f12f2
commit
5f8911d77a
|
@ -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
|
||||
|
|
2
tests.py
2
tests.py
|
@ -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('😄')
|
||||
|
||||
|
|
Loading…
Reference in New Issue