Closed doublec closed 7 years ago
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...
Yes, that's an amusing bug!
On Sep 5, 2017, at 4:35 PM, Russell Allen notifications@github.com 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!
Fixed - Commit 93b24da on dev branch
If I try to capitalize a string with numbers, the numbers are changed to unprintable characters:
Tested with github master branch.