mirror of
https://github.com/samsonjs/Marshmallows.git
synced 2026-03-25 09:05:52 +00:00
Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| 2576c17684 |
2 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue