regex: /.{1}??/ should be an error #14960
Comments
From victor@drawall.ccCreated by victor@drawall.ccHow to reproduce
Note: /.{1}?+/ gives the same results, but no other quantifier combination. Expected behavior Perl should die with the following diagnostic:
Actual behavior Perl terminates normally. Affected versions Current blead (0fa1f7e) is affected. Perl Info
|
From @iabynOn Fri, Oct 02, 2015 at 12:59:09PM -0700, Victor ADAM wrote:
But it warns: $ perl5200 -we'"a" =~ /.{1}??/' -- |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Mon, Oct 05, 2015 at 09:18:29AM +0100, Dave Mitchell wrote:
Victor pointed out to me offlist that that should still die. Bisecting Nested quantifiers in regex; ... and now its silently accepted. commit 4fa6dd1 PATCH: [Perl #42957] Suggesting warning for useless greediness operator -- |
From @khwilliamsonThanks for the report, fixed by commit -- |
@khwilliamson - Status changed from 'open' to 'pending release' |
@mauke - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#126253 (status was 'resolved')
Searchable as RT126253$
The text was updated successfully, but these errors were encountered: