1
0
mirror of https://github.com/jfilter/clean-text.git synced 2021-09-19 22:32:58 +03:00

fix emoji removal

This commit is contained in:
Johannes Filter
2021-04-12 19:56:57 +02:00
parent 90946c2cc8
commit 22014c008a

View File

@@ -190,7 +190,7 @@ def remove_punct(text):
def remove_emoji(text):
for x in UNICODE_EMOJI:
for x in UNICODE_EMOJI['en']:
if x in text:
text = text.replace(x, "")
return text