regcomp.c: Can't do optimization if inverting
authorKarl Williamson <khw@cpan.org>
Fri, 19 Feb 2016 18:11:40 +0000 (11:11 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 19 Feb 2016 18:27:10 +0000 (11:27 -0700)
commit4a00f5ee686e9556430d0302ed4275caf71bacd0
tree04896ae6cd17fb9b8a1eb7f651e5447a3c02f9c3
parent45b9a532ff9dd7ec76d390b6ceee099e4d9a46fb
regcomp.c: Can't do optimization if inverting

Something like /[^\W_0-9]/ was getting optimized into something it
shouldn't have been.  Although, the way the execution code is
structured, I couldn't find a case where it actually made a difference.
So skip the optimization if inverting.
regcomp.c