Show:

Methods

validate
(
  • value
  • options
  • model
  • attribute
)

Defined in addon/format.js:17

Parameters:

  • value Any
  • options Object
    • allowBlank Boolean

      If true, skips validation if the value is empty

    • type String

      Can be the one of the following options [email, phone, url]

    • inverse String

      If true, pass if the value doesn't match the given regex / type

    • regex Regex

      The regular expression to test against

    • allowNonTld Boolean

      If true, the predefined regular expression email allows non top-level domains

    • minTldLength Number

      The min length of the top-level domain on the predefined email regular expression

  • model Object
  • attribute String