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

negative numbers in ranges are understood incorrectly (/ .**{-10..-5} /) #5807

Closed
p6rt opened this issue Nov 17, 2016 · 5 comments
Closed

negative numbers in ranges are understood incorrectly (/ .**{-10..-5} /) #5807

p6rt opened this issue Nov 17, 2016 · 5 comments
Labels

Comments

@p6rt
Copy link

@p6rt p6rt commented Nov 17, 2016

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

Searchable as RT130125$

@p6rt
Copy link
Author

@p6rt p6rt commented Nov 17, 2016

From @AlexDaniel

*Code​:*
say ‘abcefghij’ ~~ / .**{-10..-5} /

*Result​:*
「abcefghij」

I think it should match nothing.

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Nov 17, 2016

From @AlexDaniel

On 2016-11-17 14​:14​:25, alex.jakimenko@​gmail.com wrote​:

*Code​:*
say ‘abcefghij’ ~~ / .**{-10..-5} /

*Result​:*
「abcefghij」

I think it should match nothing.

Same behavior with something like {10..0}, probably the same bug.

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 1, 2017

From @zoffixznet

On Thu, 17 Nov 2016 14​:14​:25 -0800, alex.jakimenko@​gmail.com wrote​:

*Code​:*
say ‘abcefghij’ ~~ / .**{-10..-5} /

*Result​:*
「abcefghij」

I think it should match nothing.

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@681d6be
Test​: Raku/roast@99c822a

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 1, 2017

The RT System itself - Status changed from 'new' to 'open'

Loading

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 1, 2017

@zoffixznet - Status changed from 'open' to 'resolved'

Loading

@p6rt p6rt closed this Oct 1, 2017
@p6rt p6rt added the regex label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant