We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 171d4e3 + 90813a9 commit 9127fd2Copy full SHA for 9127fd2
emojificate/filter.py
@@ -15,7 +15,7 @@ def tag(a, b):
15
def convert(char):
16
if unicodedata.category(char) == "So":
17
name = unicodedata.name(char).title()
18
- code = char.encode("unicode_escape").decode("utf-8")[2:].strip("0")
+ code = char.encode("unicode_escape").decode("utf-8")[2:].lstrip("0")
19
return "".join([
20
"<img",
21
tag(" src", cdn + code + cdn_ft),
0 commit comments