This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Refactor as a result of [perl #123539]
The previous commit was a minimal patch for this bug, suitable for a
maintenance release. This patch refactors that fix to eliminate special
cases (hence branches) and makes things more logical and clearer.
The original code shoe-horned two cases together that, it turns out,
should have been handled separately, and this patch does that.
The earlier code was somewhat stilted to conform with the reguni() API.
Now that reguni is no longer called, this gets cleaned up.