validateFormatOf
can.Map.validations.static.validateFormatOf
observe.validateFormatOf(attrNames, regexp, options)
Parameters
-
attrNames
{Array<String>}
Attribute name(s) to to validate
-
regexp
{RegExp}
Regular expression used to match for validation
-
options
{Object}
OptionalOptions for the validations. Valid options include 'message' and 'testIf'.
validateFormatOf(attrNames, regexp, options)
validates where the values of specified attributes are of the correct form by matching it against the regular expression provided.