Skip to content

Commit

Permalink
added watch validation
Browse files Browse the repository at this point in the history
  • Loading branch information
gkaimakas committed Dec 4, 2015
1 parent 437c32e commit ed896f9
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 32 deletions.
83 changes: 54 additions & 29 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion SwiftValidators.podspec
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = "SwiftValidators"
s.version = "2.0.3"
s.version = "2.0.4"
s.summary = "String validation for iOS developed in Swift. Inspired by validator.js"
s.homepage = "https://github.com/gkaimakas/SwiftValidators"
s.license = 'MIT'
Expand Down
4 changes: 2 additions & 2 deletions SwiftValidators/Validator.swift
Expand Up @@ -11,7 +11,7 @@ import Foundation
public typealias Validation = (String) -> Bool

public protocol ValidatorProtocol {
func value() -> String
func getValue() -> String
}

public class Validator {
Expand Down Expand Up @@ -1186,7 +1186,7 @@ public class Validator {
if value == "" {
return (self.validationMode == .Default ? true : false)
}
return value == delegate.value()
return value == delegate.getValue()
}
}

Expand Down

0 comments on commit ed896f9

Please sign in to comment.