Show:

Validate on a regex on each value in a Comma Seperated Value. Pass type = 2 to get this.

Methods

validateValue

(
  • value
  • record
)
Boolean private
Method to validate.

Parameters:

  • value Any
    Value to validate.
  • record Class
    Record to validate on.

Returns:

Boolean:

Properties

delimeter

String

Delimeter to use to split values in the CSV.

invalidMessage

String
Message to show when the validation fails.

negate

Boolean
Boolean that says whether to negate the result or not.

regex

String
Regex to valide with.

regexFlags

String
Regex flags to use while creating the regex object.

regexObject

RegExp
RegExp object create using regex and regexFlags.