Skip to content

Commit

Permalink
Merge pull request #13 from fabb/master
Browse files Browse the repository at this point in the history
replace disallowed characters '@' and '-' in method names
  • Loading branch information
puls committed May 2, 2014
2 parents fcd42e9 + 04b8896 commit 0d977c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Shared/CGUCodeGenTool.m
Expand Up @@ -174,6 +174,8 @@ - (NSString *)methodNameForKey:(NSString *)key;
}
[mutableKey replaceOccurrencesOfString:@" " withString:@"" options:0 range:NSMakeRange(0, mutableKey.length)];
[mutableKey replaceOccurrencesOfString:@"~" withString:@"" options:0 range:NSMakeRange(0, mutableKey.length)];
[mutableKey replaceOccurrencesOfString:@"@" withString:@"" options:0 range:NSMakeRange(0, mutableKey.length)];
[mutableKey replaceOccurrencesOfString:@"-" withString:@"_" options:0 range:NSMakeRange(0, mutableKey.length)];
return [mutableKey copy];
}

Expand Down

0 comments on commit 0d977c6

Please sign in to comment.