From df91c616f1e25ae67d30387c01431d936c0424c3 Mon Sep 17 00:00:00 2001 From: Grzegorz Adam Hankiewicz Date: Fri, 6 Mar 2015 11:09:12 +0100 Subject: [PATCH] Replaces tildes in filenames to underscores. --- identifierconstants/IDStoryboardDumper.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identifierconstants/IDStoryboardDumper.m b/identifierconstants/IDStoryboardDumper.m index c2af334..f540fdf 100644 --- a/identifierconstants/IDStoryboardDumper.m +++ b/identifierconstants/IDStoryboardDumper.m @@ -28,7 +28,7 @@ - (void)startWithCompletionHandler:(dispatch_block_t)completionBlock; { self.skipClassDeclaration = YES; NSString *storyboardFilename = [[self.inputURL lastPathComponent] stringByDeletingPathExtension]; - NSString *storyboardName = [storyboardFilename stringByReplacingOccurrencesOfString:@" " withString:@""]; + NSString *storyboardName = [[storyboardFilename stringByReplacingOccurrencesOfString:@" " withString:@""] stringByReplacingOccurrencesOfString:@"~" withString:@"_"]; self.className = [NSString stringWithFormat:@"%@%@StoryboardIdentifiers", self.classPrefix, storyboardName]; NSError *error = nil;