forked from retoor/devplacepy
Quiiz system
This commit is contained in:
@@ -45,6 +45,12 @@ def write_emoji_module(path: Path = EMOJI_JS_PATH) -> int:
|
||||
|
||||
EMOJI_MAP = build_emoji_shortcodes()
|
||||
|
||||
|
||||
def is_single_emoji(value: str) -> bool:
|
||||
text = (value or "").strip()
|
||||
return emoji.emoji_count(text) == 1 and emoji.purely_emoji(text)
|
||||
|
||||
|
||||
_WIDGET_RE = re.compile(r"<dp-widget>(.*?)</dp-widget>", re.DOTALL | re.IGNORECASE)
|
||||
_WIDGET_PH = "\x00WIDGET_{}\x00"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user