supermarin / ObjectiveSugar

ObjectiveC additions for humans. Ruby style.
MIT License
2.17k stars 190 forks source link

[NSString camelCase] return wrong result when no underscore #93

Open yasirmturk opened 9 years ago

yasirmturk commented 9 years ago

Input: @"FullName" Expected & Valid output: fullName Actual Output: fullname

Fix: wrap the functionality of -(NSString *)camelCase to execute only if string contains underscore "_"