ALPHA

Verifies if the given input is an alpha or an alpha-numeric string.

Options
  • dotboolean, falseshould we allow dots in the string
  • dashboolean, falseshould we allow dashes in the string
  • underscoreboolean, falseshould we allow underscores in the string.
  • numericboolean, falseshould the string contain numbers, essentially transforming into an alpha-numeric check
'use strict';
thorin.validate('ALPHA', 'inputString', {
   dot: true,
   dash: true,
   underscore: true,
   numeric: true
});
Do you have a question or is something missing?

You can always create a new issue on GitHub or contact one of the core founders by chat.