regexValidator

Created by Ely on 7/21/2014. Module for validating a value by regular expression.

Methods

static regexValidator(options, value) → {Object}

Validates a value with the regex `pattern` option passed in.
Parameters:
Name Type Description
options Object
value *
Returns:
Object

static regexValidatorNoNormalize(options, value) → {*}

Same as `regexValidator` except this version is not curried and doesn't normalize incoming `options` parameter.
Parameters:
Name Type Description
options Object
value *
Returns:
*

static toRegexValidatorOptions(options) → {Object}

Normalizes `regexValidator` options.
Parameters:
Name Type Description
options Object
Returns:
Object