diff --git a/TSMarkdownParser.xcodeproj/project.pbxproj b/TSMarkdownParser.xcodeproj/project.pbxproj index 19e18c6..c625790 100644 --- a/TSMarkdownParser.xcodeproj/project.pbxproj +++ b/TSMarkdownParser.xcodeproj/project.pbxproj @@ -571,7 +571,7 @@ }; buildConfigurationList = CC3C717FD5DA31AA1A2B87BF /* Build configuration list for PBXProject "TSMarkdownParser" */; compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; + developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, @@ -891,7 +891,7 @@ ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = "TSMarkdownParserExample iOS/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_BUNDLE_IDENTIFIER = "se.computertalk.TSMarkdownParserExample-iOS"; @@ -911,7 +911,7 @@ ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = "TSMarkdownParserExample iOS/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = "se.computertalk.TSMarkdownParserExample-iOS"; @@ -1112,7 +1112,7 @@ GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_PARAMETER = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; MACOSX_DEPLOYMENT_TARGET = 10.7; ONLY_ACTIVE_ARCH = YES; PRODUCT_BUNDLE_IDENTIFIER = "se.computertalk.$(PRODUCT_NAME:rfc1034identifier)"; @@ -1173,7 +1173,7 @@ GCC_WARN_UNUSED_LABEL = YES; GCC_WARN_UNUSED_PARAMETER = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 6.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; MACOSX_DEPLOYMENT_TARGET = 10.7; PRODUCT_BUNDLE_IDENTIFIER = "se.computertalk.$(PRODUCT_NAME:rfc1034identifier)"; SDKROOT = iphoneos; @@ -1213,7 +1213,7 @@ ); INFOPLIST_FILE = TSMarkdownParserFramework/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = TSMarkdownParserFramework/module.modulemap; MTL_ENABLE_DEBUG_INFO = YES; @@ -1241,7 +1241,7 @@ GCC_NO_COMMON_BLOCKS = YES; INFOPLIST_FILE = TSMarkdownParserFramework/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MODULEMAP_FILE = TSMarkdownParserFramework/module.modulemap; MTL_ENABLE_DEBUG_INFO = NO; diff --git a/TSMarkdownParser.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/TSMarkdownParser.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/TSMarkdownParser.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/TSMarkdownParser/TSMarkdownParser.m b/TSMarkdownParser/TSMarkdownParser.m index c48090c..64e0a58 100644 --- a/TSMarkdownParser/TSMarkdownParser.m +++ b/TSMarkdownParser/TSMarkdownParser.m @@ -146,7 +146,7 @@ + (instancetype)standardParser { } if (!weakParser.skipLinkAttribute) { NSURL *url = [NSURL URLWithString:link] ?: [NSURL URLWithString: - [link stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; + [link stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]]; if (url.scheme) { [attributedString addAttribute:NSLinkAttributeName value:url @@ -159,7 +159,7 @@ + (instancetype)standardParser { [defaultParser addLinkParsingWithLinkFormattingBlock:^(NSMutableAttributedString *attributedString, NSRange range, NSString * _Nullable link) { if (!weakParser.skipLinkAttribute) { NSURL *url = [NSURL URLWithString:link] ?: [NSURL URLWithString: - [link stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; + [link stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]]; if (url) { [attributedString addAttribute:NSLinkAttributeName value:url @@ -189,7 +189,7 @@ + (instancetype)standardParser { return; } NSURL *url = [NSURL URLWithString:link] ?: [NSURL URLWithString: - [link stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; + [link stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]]; [attributedString addAttribute:NSLinkAttributeName value:url