mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 07:19:13 +08:00
Fix emoji tags
This commit is contained in:
@@ -1058,7 +1058,7 @@ def smart_str(s, encoding=DEFAULT_ENCODING, strings_only=False, errors='strict')
|
||||
|
||||
def strip_control_characters(s):
|
||||
"""Strip unicode control characters from a string."""
|
||||
return "".join(c for c in unicodify(s) if unicodedata.category(c)[0] != "C")
|
||||
return "".join(c for c in unicodify(s) if unicodedata.category(c)[0] != "C" or unicodedata.category(c) == "Cn")
|
||||
|
||||
|
||||
def strip_control_characters_nested(item):
|
||||
|
||||
Reference in New Issue
Block a user