This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Fix an optimization criterium
authorKarl Williamson <khw@cpan.org>
Fri, 29 Dec 2017 21:54:17 +0000 (14:54 -0700)
committerKarl Williamson <khw@cpan.org>
Sat, 30 Dec 2017 05:45:14 +0000 (22:45 -0700)
commitd358cae270073796157df30899cd8db2c8bae462
tree9f4b7596acdb1ee2d7115963a866ef4a250ea52e
parent50b5fec4a8198654b4bd897127c6fee31d86c3a2
regcomp.c: Fix an optimization criterium

/[...]/ patterns get optimized into Posix ones if they match the same
things, as the latter are somewhat speedier.  The code that checks if
they match was off-by-one, so that it didn't check for a match for \v.
regcomp.c