-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Strange output of String#underscore with strings of uppercased letters and numbers #4278
Labels
Comments
Minimal version: puts "AB1".underscore Gives |
makenowjust
added a commit
to makenowjust/crystal
that referenced
this issue
Apr 12, 2017
Treat digit as downcase character. But in upcase characters it treats like upcase character. It works fine.
olbat
added a commit
to olbat/crystal
that referenced
this issue
Apr 13, 2017
The String#underscore method does not behave correctly when handling strings containing non-letter characters such as digits (i.e. "FOO123")
Oops, sorry for the second PR, I worked offline and didn't check before pushing it 😳 |
mverzilli
pushed a commit
that referenced
this issue
Jun 2, 2017
olbat
added a commit
to olbat/libgen
that referenced
this issue
Aug 3, 2017
olbat
added a commit
to olbat/libgen
that referenced
this issue
Aug 3, 2017
olbat
added a commit
to olbat/libgen
that referenced
this issue
Aug 3, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I'm not really sure what the output of
String#underscore
should be with uppercased strings containing numbers, but I think that the current behavior is wrong:Here is how Rails String#underscore behaves:
The text was updated successfully, but these errors were encountered: