'use strict';

module.exports = function() {
  return /^(([a-zA-Z]{1})|([a-zA-Z]{1}[a-zA-Z]{1})|([a-zA-Z]{1}[0-9]{1})|([0-9]{1}[a-zA-Z]{1})|([a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]))\.([a-zA-Z]{2,30}|[a-zA-Z0-9-]{2,21}\.[a-zA-Z]{2,13})$/;
};

'use strict';

module.exports = function() {
  return /^(([a-z]{1})|([a-z]{1}[a-z]{1})|([a-z]{1}[0-9]{1})|([0-9]{1}[a-z]{1})|([a-z0-9][a-z0-9-]{1,61}[a-z0-9]))\.([a-z]{2,30}|[a-z0-9-]{2,20}\.[a-z]{2,13})$/i;
};

Add case insensitive flag