#27102: simplify_regex is not cleaning up any outstanding regex-y character
-----------------------------------+--------------------
Reporter: prajjwol | Owner: nobody
Type: Bug | Status: new
Component: contrib.admindocs | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
If you try cleaning up a regex pattern involving groups, simplify_regex
fails to remove a bracket.
Steps to reproduce:
run this in your shell:
`django.contrib.admindocs.views.simplify_regex('^orgs/(?P<org_id>([0-9a-f]{32}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}))$')`
output:
`'/orgs/<org_id>)'`
expected output:
`'/orgs/<org_id>'`
--
Ticket URL: <https://code.djangoproject.com/ticket/27102>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.f6512021f97ef173d223a70ce3b731b3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.