mirror of https://github.com/coddrago/Heroku
Update utils.py
parent
bdca57fbf5
commit
01c90f4c6f
|
@ -1455,7 +1455,7 @@ def remove_emoji(text: str) -> str:
|
|||
|
||||
allchars = [str for str in text]
|
||||
emoji_list = [c for c in allchars if c in emoji.EMOJI_DATA]
|
||||
clean_text = ' '.join([str for str in text.split() if not any(i in str for i in emoji_list)])
|
||||
clean_text = ''.join([str for str in text if not any(i in str for i in emoji_list)])
|
||||
return clean_text
|
||||
|
||||
def get_kwargs() -> typing.Dict[str, typing.Any]:
|
||||
|
|
Loading…
Reference in New Issue