Metode Validator Domain JS
isDomain(arg) {
let regexDomain = /^\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if (arg.match(regexDomain)) {
return true;
} else {
return false;
}
}
Elegant Elk