gh-91700: Validate the group number in conditional expression in RE (GH-91702)
In expression (?(group)...) an appropriate re.error is now raised if the group number refers to not defined group. Previously it raised RuntimeError: invalid SRE code.
S
Serhiy Storchaka committed
48ec61a89a959071206549819448405c2cea61b0
Parent: 6ccfa31
Committed by GitHub <noreply@github.com>
on 4/22/2022, 4:53:10 PM