Skip to content

Commit

Permalink
Use raw python string for regex
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu authored Aug 5, 2024
1 parent dd1525f commit 3c5e4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencontainers/distribution/reggie/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
__version__
)
URL_REGEX = (
"http[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"
r"http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"
)
VALID_METHODS = ["HEAD", "GET", "POST", "PATCH", "PUT", "DELETE", "OPTIONS"]

0 comments on commit 3c5e4db

Please sign in to comment.