Opened 9 years ago
Last modified 4 years ago
#28135 closed Cleanup/optimization
simplify_regex() doesn't handle non-capturing groups — at Version 8
| Reported by: | German M. Bravo | Owned by: | Felix Zhang |
|---|---|---|---|
| Component: | contrib.admindocs | Version: | 1.11 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
While using Django REST Framework's Schema generator, I found out they're using simplify_regex(); however, current version has a few shortcomings, namely non-capturing groups are broken.
Change History (8)
comment:1 by , 9 years ago
| Component: | Uncategorized → contrib.admindocs |
|---|---|
| Has patch: | set |
| Triage Stage: | Unreviewed → Accepted |
| Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 9 years ago
| Patch needs improvement: | set |
|---|
comment:3 by , 5 years ago
| Easy pickings: | set |
|---|
comment:5 by , 5 years ago
| Has patch: | unset |
|---|---|
| Patch needs improvement: | unset |
comment:6 by , 4 years ago
| Description: | modified (diff) |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:7 by , 4 years ago
| Description: | modified (diff) |
|---|---|
| Has patch: | set |
I have opened a pull request that allows simplify_regex() to handle non-capturing groups and additional tests for them in test_simplify_regex().
comment:8 by , 4 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.
I left comments for improvement on the PR. Please uncheck "Patch needs improvement" after updating.