From a3abecac47ffd4649684c5e3c854eaf8db69a6e8 Mon Sep 17 00:00:00 2001 From: johnnylau <4516477+johnnylau@users.noreply.github.com> Date: Thu, 9 Mar 2023 13:52:27 +0800 Subject: [PATCH] pass test --- gallery_dl/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gallery_dl/util.py b/gallery_dl/util.py index e2cca556..03b38353 100644 --- a/gallery_dl/util.py +++ b/gallery_dl/util.py @@ -210,9 +210,11 @@ def to_string(value): return ", ".join(map(str, value)) return str(value) + def remove_invisible_chars_strip(text): """Remove all invisible characters from 'text' then strip""" - return "".join(c for c in text if unicodedata.category(c)[0] != "C").strip() + return "".join(c for c in text if unicodedata.category(c)[0] != "C")\ + .strip() def datetime_to_timestamp(dt):