diff --git a/hours/importer/base.py b/hours/importer/base.py index 265f24ca..c2413148 100644 --- a/hours/importer/base.py +++ b/hours/importer/base.py @@ -108,6 +108,7 @@ def clean_text(text: str, strip_newlines: bool = False) -> str: text = text.replace("\u0000", " ") if strip_newlines: text = text.replace("\r", "").replace("\n", " ") + # TODO check this, re.U seems to be erroneously used as count # remove consecutive whitespaces return re.sub(r"\s\s+", " ", text, re.U).strip() # noqa: B034