Skip to content

Commit

Permalink
Merge pull request #21 from BeryJu/patch-1
Browse files Browse the repository at this point in the history
Use raw python string for regex
  • Loading branch information
vsoch authored Aug 5, 2024
2 parents dd1525f + 3c5e4db commit 20d69d9
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 20d69d9

Please sign in to comment.