-
Notifications
You must be signed in to change notification settings - Fork 77
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
'string capitalizeAll' doesn't work for numbers #124
Comments
Lol. Well the simplest fix is to change:
to
unless you have a better idea... |
Yes, that's an amusing bug!
- David
… On Sep 5, 2017, at 4:35 PM, Russell Allen ***@***.***> wrote:
Lol. Well the simplest fix is to change:
capitalizeAll = (copyMutable mapBy: [|:c| c isCapitalized ifTrue: c False: [(c asByte + capitalizationDifference) asCharacter]])
to
copyMutable mapBy: [|:c| (c isLetter not || c isCapitalized) ifTrue: c False: [(c asByte + capitalizationDifference) asCharacter]]
unless you have a better idea...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Looks good to me! |
russellallen
added a commit
that referenced
this issue
Sep 8, 2017
Fixed - Commit 93b24da on dev branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I try to capitalize a string with numbers, the numbers are changed to unprintable characters:
Tested with github master branch.
The text was updated successfully, but these errors were encountered: