Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dfirsec committed Aug 26, 2024
1 parent 122420e commit 746a1d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ class Helpers:
r"|[e\.g]$)(?:[a-z]"
r"{2,4})\b|(?:\[\.\][a-z]{2,4})(?!@)$)",
),
"email": re.compile(
r"\b[A-Z0-9][A-Z0-9._%+-]*@(?:[A-Z0-9-]+\.)+[A-Z]{2,}\b",
),
"email": re.compile(r"\b[A-Z0-9][A-Z0-9._%+-]*@(?:[A-Z0-9-]+\.)+[A-Z]{2,}\b"),
"url": re.compile(
r"(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]"
r"{1,6}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=\*]*))",
Expand Down

0 comments on commit 746a1d4

Please sign in to comment.