Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ipOrFQDN(str) {
if (typeof str !== 'string') {
return false;
}
return ip.isV4Format(str) || FormatValidators.hostname(str);
},
/**
ipOrFQDN(str) {
if (typeof str !== 'string') {
return false;
}
return ip.isV4Format(str) || FormatValidators.hostname(str);
},
/**