Static Methodvapor 4.106.3Vapor
characterSet(_:)
Validates that all characters in elements of a [String]
are in the supplied CharacterSet
.
static func characterSet(_ characterSet: Foundation.CharacterSet) -> Validator
Other members in extension
Type members
static var alphanumeric: Validator
Validates that all characters in elements of a
[String]
are alphanumeric (a-z,A-Z,0-9).static var ascii: Validator
Validates that all characters in elements of a
[String]
are ASCII (bytes 0..<128).