Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Aug 23, 2023
1 parent 956941d commit 73752ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/utils/text_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ def preprocess_words(text):
def remove_guid_uids_from_text(text):
for pattern in [
r"[0-9a-fA-F]{16,48}|[0-9a-fA-F]{10,48}\.\.\.",
"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}", # noqa
r"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-\w+"]:
r"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}",
r"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-\w+"
]:
strings_to_replace = set()
for m in re.findall(pattern, text):
if not m.isdigit() and m.strip():
Expand Down

0 comments on commit 73752ac

Please sign in to comment.