Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* quantifier after block in regexp executes it infinite amount of times #2116

Closed
p6rt opened this issue Aug 31, 2010 · 4 comments
Closed

* quantifier after block in regexp executes it infinite amount of times #2116

p6rt opened this issue Aug 31, 2010 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Aug 31, 2010

Migrated from rt.perl.org#77564 (status was 'resolved')

Searchable as RT77564$

@p6rt
Copy link
Author

p6rt commented Aug 31, 2010

From @bbkr

[13​:48] <bbkr> rakudo​: "" ~~ /{}*/; say "alive"
[13​:48] <p6eval> rakudo f8e959​: OUTPUT«(timeout)»

[13​:50] <bbkr> rakudo​: "" ~~ /{"a"}*/; say "alive"
[13​:50] <p6eval> rakudo f8e959​: OUTPUT«(timeout)»

[13​:49] <moritz> bbkr​: since {} doesn't return anything that can be matched
against, I'd argue it should complain "quantifiers follows nothing" or so
[13​:49] <moritz> or "can't quantify non-matching construct" or something
[13​:50] <moritz> IMHO it should be a parse error at compile time

@p6rt
Copy link
Author

p6rt commented Oct 19, 2015

From @FROGGS

Patches​:
Raku/nqp@41ab646099
rakudo/rakudo@de4b2b3a87

Tests​:
Raku/roast@95ee3272ab

Closing ticket.

1 similar comment
@p6rt
Copy link
Author

p6rt commented Oct 19, 2015

From @FROGGS

Patches​:
Raku/nqp@41ab646099
rakudo/rakudo@de4b2b3a87

Tests​:
Raku/roast@95ee3272ab

Closing ticket.

@p6rt p6rt closed this as completed Oct 19, 2015
@p6rt
Copy link
Author

p6rt commented Oct 19, 2015

@FROGGS - Status changed from 'new' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant