Skip to content

Type Method

custom(_:validationClosure:)

Validates whether a String matches a RegularExpression pattern
static func custom(_ validationDescription: String, validationClosure: @escaping @Sendable (T) -> Bool) -> Validator<T>