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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user