Skip to content

Commit e576212

Browse files
committed
PATH_PARAMETER_PATTERN reformatting
1 parent af6f24a commit e576212

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openapi_core/contrib/django/requests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
# is exported, after which it matches ">" and everything until a "/".
2121
# A check is made to ensure that "/" is not in an excluded character set such
2222
# as may be found with Django REST Framwork's default value pattern, "[^/.]+".
23-
PATH_PARAMETER_PATTERN = r"(?:[^/]*?)<(?:(?:.*?:))*?(\w+)>(?:(?:[^/]*?\[\^[^/]*/)?[^/]*)"
23+
PATH_PARAMETER_PATTERN = (
24+
r"(?:[^/]*?)<(?:(?:.*?:))*?(\w+)>(?:(?:[^/]*?\[\^[^/]*/)?[^/]*)"
25+
)
2426

2527

2628
class DjangoOpenAPIRequest:

0 commit comments

Comments
 (0)