in packages/@fbcmobile-ui/Utils/StringUtils.js [75:83]
export function isValidIPAddress(ipAddress: string): boolean {
/* eslint-disable max-len */
const ipRegex = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;
if (ipRegex.test(ipAddress)) {
return true;
}
return false;
}