mirror of
https://github.com/markqvist/Sideband.git
synced 2025-05-08 01:14:59 -04:00
Strip emojis from Linux notifications
This commit is contained in:
parent
381c437886
commit
88d3d5ed95
2 changed files with 13 additions and 1 deletions
|
@ -37,6 +37,13 @@ class IconListItem(OneLineIconListItem):
|
|||
def is_emoji(unicode_character):
|
||||
return unicode_character in emoji_lookup
|
||||
|
||||
def strip_emojis(str_input):
|
||||
output = ""
|
||||
for cp in str_input:
|
||||
if not is_emoji(cp):
|
||||
output += cp
|
||||
return output
|
||||
|
||||
def multilingual_markup(data):
|
||||
# TODO: Remove
|
||||
# import time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue