Skip to content

Commit

Permalink
Emoji Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dot committed Oct 9, 2022
1 parent 0097d02 commit a0cac80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fmt/png.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def _script_category(char):
default, Cyrillic, Greek, Han, Hiragana
"""

if char in emoji.UNICODE_EMOJI:
if emoji.is_emoji(char):
return "Emoji"

cat = unicodedata2.script_cat(char)[0]
Expand Down

0 comments on commit a0cac80

Please sign in to comment.