django__django-11728
simplify_regexp() doesn't replace trailing groups.
Verdict: the fix is stated in the issue (Tier A).
if unmatched_open_brackets == 0: + group_pattern_and_name.append((pattern[start:end + idx + 1], group_name)) + break
The text states the fix: “if unmatched_open_brackets == 0: + group_pattern_and_name.append((pattern[start:end + idx + 1], group_name)) + break”
All SWE-bench Verified tasks · more django/django tasks · How the check works