You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails when i == 0 and the next character is lower case.
I think a more correct logic would be to always lowercase i == 0, then continue if the current char and the next one both are uppercase.
Something like (untested):
CamelCase incorrectly transforms
IsIG
toisig
. Expected result isisIG
.The bug seems to be this condition
It fails when
i == 0
and the next character is lower case.I think a more correct logic would be to always lowercase i == 0, then continue if the current char and the next one both are uppercase.
Something like (untested):
Note: I am unsure what the correct behavior is for
ABC
. Code above results inabC
.The text was updated successfully, but these errors were encountered: