CreditCardCondition
public struct CreditCardCondition : ConfigurableCondition
The CreditCardCondition
checks a string for a credit card number.
-
Declaration
Swift
public var localizedViolationString: String
-
Declaration
Swift
public var regex: String { get }
-
Declaration
Swift
public var shouldAllowViolation: Bool
-
Declaration
Swift
public var configuration: CreditCardConfiguration
-
Declaration
Swift
public init(configuration: CreditCardConfiguration)
-
Checks if the string is a valid credit card number, after removes all whitespace.
Declaration
Swift
public func check(_ text: String?) -> Bool
-
Undocumented
Declaration
Swift
public func check(_ trimmedText: String, withRegex regExp: NSRegularExpression) -> Bool