admindocs: simplify_regex

12 views
Skip to first unread message

Nacharov Mikhail

unread,
Aug 6, 2018, 4:19:53 AM8/6/18
to Django users
Hi all,

Does anybody know, why admindocs function `django.contrib.admindocs.views.simplify_regex` transforms  "(?:something/)?" to '''/<var>" ?
"(?:)" is a non-capturing version of regular parentheses[1], so there is no "var" here, right?


[1]: https://docs.python.org/3/library/re.html#regular-expression-syntax
Reply all
Reply to author
Forward
0 new messages