Skip to content

Commit aad6604

Browse files
committed
fixed untracked files
1 parent 5c22740 commit aad6604

File tree

11 files changed

+44
-196
lines changed

11 files changed

+44
-196
lines changed

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Xcode
2+
#
3+
build/
4+
*.pbxuser
5+
!default.pbxuser
6+
*.mode1v3
7+
!default.mode1v3
8+
*.mode2v3
9+
!default.mode2v3
10+
*.perspectivev3
11+
!default.perspectivev3
12+
xcuserdata
13+
*.xccheckout
14+
*.moved-aside
15+
DerivedData
16+
*.hmap
17+
*.ipa
18+
*.xcuserstate
19+
20+
# CocoaPods
21+
#
22+
# We recommend against adding the Pods directory to your .gitignore. However
23+
# you should judge for yourself, the pros and cons are mentioned at:
24+
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
25+
#
26+
# Pods/
27+
28+
# Carthage
29+
#
30+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
31+
# Carthage/Checkouts
32+
33+
Carthage/Build

Swift-Validator.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Pod::Spec.new do |s|
88
s.author = { "Jeff" => "jeff.potter6@gmail.com" }
99
s.social_media_url = "http://twitter.com/jpotts18"
1010
s.platform = :ios
11+
s.ios.deployment_target = '8.0'
1112
s.source = { :git => "https://github.com/jpotts18/swift-validator.git", :tag => "2.0.1" }
1213
s.source_files = "Validator/*.swift"
1314
end

Validator.xcodeproj/project.xcworkspace/xcshareddata/Validator.xccheckout

Lines changed: 0 additions & 41 deletions
This file was deleted.

Validator.xcodeproj/xcuserdata/jpotts18.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 0 additions & 5 deletions
This file was deleted.

Validator.xcodeproj/xcuserdata/jpotts18.xcuserdatad/xcschemes/Validator.xcscheme

Lines changed: 0 additions & 110 deletions
This file was deleted.

Validator.xcodeproj/xcuserdata/jpotts18.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 0 additions & 27 deletions
This file was deleted.

Validator/EmailRule.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ class EmailRule: Rule {
2121
}
2222

2323
func validate(value: String) -> Bool {
24-
if let test = NSPredicate(format: "SELF MATCHES %@", self.REGEX) {
25-
if test.evaluateWithObject(value) {
26-
return true
27-
}
24+
let test = NSPredicate(format: "SELF MATCHES \(self.REGEX)")
25+
if test.evaluateWithObject(value) {
26+
return true
2827
}
2928
return false
3029
}

Validator/MinLengthRule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class MinLengthRule : Rule {
2222
}
2323

2424
func validate(value: String) -> Bool {
25-
if countElements(value) < DEFAULT_MIN_LENGTH {
25+
if count(value) < DEFAULT_MIN_LENGTH {
2626
return false
2727
}
2828
return true

Validator/PasswordRule.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ class PasswordRule : Rule {
3131
}
3232

3333
func validate(value: String) -> Bool {
34-
if let test = NSPredicate(format: "SELF MATCHES %@", self.REGEX) {
35-
if test.evaluateWithObject(value) {
36-
return true
37-
}
34+
let test = NSPredicate(format: "SELF MATCHES \(self.REGEX)")
35+
if test.evaluateWithObject(value) {
36+
return true
3837
}
3938
return false
4039
}

0 commit comments

Comments
 (0)