Show:

Validate on a regex. Pass type = 1 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

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.