Check if input string is a valid emoji.
(text: str)
| 48 | |
| 49 | |
| 50 | def is_emoji(text: str) -> bool: |
| 51 | """Check if input string is a valid emoji.""" |
| 52 | if not _contains_special_chars(text): |
| 53 | return False |
| 54 | |
| 55 | from streamlit.emojis import ALL_EMOJIS |
| 56 | |
| 57 | return text.replace("\U0000fe0f", "") in ALL_EMOJIS |
| 58 | |
| 59 | |
| 60 | def is_material_icon(maybe_icon: str) -> bool: |
searching dependent graphs…