feat: Added emoji display to domain list

This commit is contained in:
2024-02-20 10:57:12 +11:00
parent 5e21074b24
commit 171e891555
2 changed files with 16 additions and 4 deletions

View File

@@ -168,4 +168,10 @@ def emoji_to_punycode(emoji):
try:
return emoji.encode("idna").decode("ascii")
except Exception as e:
return ""
return emoji
def punycode_to_emoji(punycode):
try:
return punycode.encode("ascii").decode("idna")
except Exception as e:
return punycode