Skip to content

Commit

Permalink
Revert regex string type
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknovak committed Nov 9, 2024
1 parent 25a6e44 commit 77307a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions anonipy/utils/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
# Regex definitions
# =====================================

REGEX_STRING = r".*"
REGEX_STRING = ".*"
"""The regex definition for string."""

REGEX_INTEGER = r"\d+"
REGEX_INTEGER = "\d+"
"""The regex definition for integer."""

REGEX_FLOAT = r"[\d\.,]+"
REGEX_FLOAT = "[\d\.,]+"
"""The regex definition for float."""

REGEX_DATE = (
Expand Down Expand Up @@ -66,16 +66,16 @@
"""

REGEX_EMAIL_ADDRESS = (
r"[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*"
"[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*"
)
"""The regex definition for email addresses."""

REGEX_PHONE_NUMBER = (
r"[(]?[\+]?[(]?[0-9]{1,3}[)]?[-\s\.]?([0-9]{2,}[-\s\.]?){2,}([0-9]{3,})"
"[(]?[\+]?[(]?[0-9]{1,3}[)]?[-\s\.]?([0-9]{2,}[-\s\.]?){2,}([0-9]{3,})"
)
"""The regex definition for phone numbers."""

REGEX_WEBSITE_URL = r"((https?|ftp|smtp):\/\/)?(www.)?([a-zA-Z0-9]+\.)+[a-z]{2,}(\/[a-zA-Z0-9#\?\_\.\=\-\&]+|\/?)*"
REGEX_WEBSITE_URL = "((https?|ftp|smtp):\/\/)?(www.)?([a-zA-Z0-9]+\.)+[a-z]{2,}(\/[a-zA-Z0-9#\?\_\.\=\-\&]+|\/?)*"
"""The regex definition for website URLs."""


Expand Down

0 comments on commit 77307a3

Please sign in to comment.