This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: regpiece() 0 times anything is 0
authorKarl Williamson <khw@cpan.org>
Fri, 24 Apr 2020 17:27:33 +0000 (11:27 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 12 Oct 2020 15:45:47 +0000 (09:45 -0600)
commit75ec2ec6d780e09dbf4af12c128f5e1768aa65a8
tree539617896499b6130774424f3bcb4f02909ee475
parentbfed65f5f2d2093415809b85c95155b5c26e195c
regcomp.c: regpiece() 0 times anything is 0

Prior to this commit, regpiece() gave width to many quantified values.
This is wrong.  If something is zero width, repeating it doesn't cause
it to gain width.  I don't know if this led to wrong pattern matching
results, but I imagine it led to slower results in some cases.
regcomp.c