Skip to content

Commit

Permalink
Merge pull request appsquickly#381 from lelander/fix-dash-bundle-names
Browse files Browse the repository at this point in the history
Support bundle names that have a dash in them
  • Loading branch information
jasperblues committed Jul 16, 2015
2 parents 9509436 + de1a663 commit d28d292
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Utils/TyphoonIntrospectionUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ Class TyphoonClassFromString(NSString *className)
Class clazz = NSClassFromString(className);
if (!clazz) {
NSString *defaultModuleName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleExecutable"];
defaultModuleName = [defaultModuleName stringByReplacingOccurrencesOfString:@" " withString:@"_"];
defaultModuleName = [[defaultModuleName stringByReplacingOccurrencesOfString:@" " withString:@"_"]
stringByReplacingOccurrencesOfString:@"-" withString:@"_"];
clazz = NSClassFromString([defaultModuleName stringByAppendingFormat:@".%@", className]);
}
if (!clazz) {
Expand Down

0 comments on commit d28d292

Please sign in to comment.