DOMAIN

Verifies if the input data is a valid domain name

Options
  • privateboolean, false should we allow local or private domains
  • underscoreboolean, true should we allow underscores in the domain
'use strict';
thorin.validate('DOMAIN', 'inputString', {
   private: false,
   underscore: 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.