Skip to content

Commit 758a205

Browse files
author
jjjkkkjjj
committed
removed handiling the sequential / (#2110)
1 parent 88ddd77 commit 758a205

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

channels/routing.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ def _parse_resolver(child_url_pattern, parent_resolver, parent_regex, routes):
9898

9999
# Remove the redundant caret ^ which is appended by `path` function
100100
regex = re.sub(r"(?<!^)\^", "", regex)
101-
# Remove the sequential '/'
102-
regex = re.sub(r"(/)\1+", r"\1", regex)
101+
103102
name = (
104103
f"{parent_resolver.app_name}:{child_url_pattern.name}"
105104
if child_url_pattern.name
@@ -245,7 +244,7 @@ def reverse(*args, urlconf=None, **kwargs):
245244
urlconf : str, optional
246245
The root path of the routings, by default None
247246
248-
See the django's
247+
See the django's
249248
[reverse](https://docs.djangoproject.com/en/5.0/ref/urlresolvers/#reverse)
250249
for more details of the other arguments
251250

0 commit comments

Comments
 (0)