Opened 9 years ago
Last modified 8 years ago
#26621 closed Bug
simplify_regex having problems with named capture groups — at Initial Version
Reported by: | Alex Rothberg | Owned by: | nobody |
---|---|---|---|
Component: | contrib.admindocs | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description
For example using the regex from [here](http://www.django-rest-framework.org/api-guide/versioning/):
simplify_regex(r'^(?P<version>(v1|v2))/bookings/(?P<pk>[0-9]+)/$') '/<version>)/bookings/<pk>/'
Escaping the /
does not seem to help.
Note:
See TracTickets
for help on using tickets.