diff --git a/Marshmallows.podspec b/Marshmallows.podspec index 61e5bb0..71abbb5 100644 --- a/Marshmallows.podspec +++ b/Marshmallows.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Marshmallows" - s.version = "0.1.1" + s.version = "0.1.2" s.summary = "Marshmallows sweeten up your Cocoa for iOS." s.description = <<-DESC Sometimes the simple things are verbose with Cocoa. This project aims @@ -37,7 +37,7 @@ Pod::Spec.new do |s| s.author = { "Sami Samhuri" => "sami@samhuri.net" } s.social_media_url = "https://twitter.com/_sjs" s.platform = :ios, "5.0" - s.source = { :git => "https://github.com/samsonjs/Marshmallows.git", :tag => "0.1.1" } + s.source = { :git => "https://github.com/samsonjs/Marshmallows.git", :tag => "0.1.2" } s.source_files = "Marshmallows" s.public_header_files = "Marshmallows/**/*.h" s.requires_arc = false diff --git a/Marshmallows/NSString+marshmallows.m b/Marshmallows/NSString+marshmallows.m index 47551c5..e0c3812 100644 --- a/Marshmallows/NSString+marshmallows.m +++ b/Marshmallows/NSString+marshmallows.m @@ -30,7 +30,7 @@ NSString* URLEncode(NSString *string) { { NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern: pattern - options: NSMatchingReportCompletion + options: 0 error: NULL]; NSRange match = [regex rangeOfFirstMatchInString: self options: NSMatchingReportCompletion @@ -42,7 +42,7 @@ NSString* URLEncode(NSString *string) { { NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern: pattern - options: NSRegularExpressionCaseInsensitive + options: 0 error: NULL]; return [regex stringByReplacingMatchesInString: self options: NSMatchingReportCompletion @@ -54,10 +54,10 @@ NSString* URLEncode(NSString *string) { { NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern: pattern - options: NSMatchingReportCompletion + options: 0 error: NULL]; NSRange match = [regex rangeOfFirstMatchInString: self - options: NSMatchingCompleted + options: NSMatchingReportCompletion range: NSMakeRange(0, self.length)]; if (match.location != NSNotFound) { NSString *rest = [self substringFromIndex: match.location + match.length];