Skip to content

Commit

Permalink
chore: flag possible bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas777 committed Oct 30, 2024
1 parent f12156b commit 1520d8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hours/importer/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1520d8a

Please sign in to comment.