Skip to content

Commit

Permalink
Merge pull request #252 from target/scanpdf-regex-update
Browse files Browse the repository at this point in the history
ScanPDF: Modification of regex throwing warning
  • Loading branch information
phutelmyer authored Dec 20, 2022
2 parents 3b849bd + 84f8876 commit 405e046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/strelka/scanners/scan_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# hide PyMuPDF warnings
fitz.TOOLS.mupdf_display_errors(False)
phone_numbers = re.compile(
"\+?(?:\d{1,2})?\s?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{2,4}?\-?\d{2,4}?",
"\+?(?:\d{1,2})?\s?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{2,4}?-?\d{2,4}?",
flags=0,
)

Expand Down

0 comments on commit 405e046

Please sign in to comment.