We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following input results in an infinite loop:
('A'..'a').to_a
This occurs because Range#each uses succ to advance to the next value and 'Z'.succ produces "AA" instead of "[".
Range#each
succ
'Z'.succ
"AA"
"["
MRI produces the expected result:
irb(main):001:0> ('A'..'a').to_a => ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "[", "\\", "]", "^", "_", "`", "a"]
This issue was reported by https://hackerone.com/mg36
The text was updated successfully, but these errors were encountered:
Terminate loop if generated string longer than the last; ref #3489
4763312
c6e5659
No branches or pull requests
The following input results in an infinite loop:
This occurs because
Range#each
usessucc
to advance to the next value and'Z'.succ
produces"AA"
instead of"["
.MRI produces the expected result:
This issue was reported by https://hackerone.com/mg36
The text was updated successfully, but these errors were encountered: