Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Fix problems with added control characters on names by PS
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonpoca committed Feb 20, 2015
1 parent 4d32b43 commit edb8bca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Clr2Obj/NSString+CamelCaser.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ - (NSString *) camelCasedString {
NSString *word = comps[i];
if ([[word stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] isEqualToString:@""])
continue;
word = [word stringByReplacingCharacterSet:[NSCharacterSet controlCharacterSet] withString:@""];
word = [word stringByReplacingCharacterSet:[NSCharacterSet punctuationCharacterSet] withString:@""];
if (i == 0) {
result = [result stringByAppendingString:[word lowercaseString]];
Expand Down

0 comments on commit edb8bca

Please sign in to comment.