From 8249f25135dba26a7bd42e110496ec05daecabb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E8=81=96=E8=BC=9D?= Date: Sat, 9 Apr 2016 11:51:26 +0900 Subject: [PATCH] fixed issue #19 --- KSHObjcUML/KSHObjcUML.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KSHObjcUML/KSHObjcUML.m b/KSHObjcUML/KSHObjcUML.m index e7ecfd8..3c36e87 100644 --- a/KSHObjcUML/KSHObjcUML.m +++ b/KSHObjcUML/KSHObjcUML.m @@ -57,7 +57,8 @@ - (NSString *)projectName { NSString *tempProjectName = [VWKProject projectForKeyWindow].projectOriginalName; if (tempProjectName) { - _projectName = tempProjectName; + // When the project name contains “ ” replace to "_" + _projectName = [tempProjectName stringByReplacingOccurrencesOfString:@" " withString:@"_"]; } return _projectName; }