CreditCardCondition

public struct CreditCardCondition : ConfigurableCondition

The CreditCardCondition checks a string for a credit card number.

  • 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