mirror of
https://github.com/itdoginfo/podkop.git
synced 2026-06-11 13:58:14 +03:00
feat: migrate to _ locales handler
This commit is contained in:
@@ -5,8 +5,8 @@ export function validateIPV4(ip: string): ValidationResult {
|
||||
/^(?:(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/;
|
||||
|
||||
if (ipRegex.test(ip)) {
|
||||
return { valid: true, message: 'Valid' };
|
||||
return { valid: true, message: _('Valid') };
|
||||
}
|
||||
|
||||
return { valid: false, message: 'Invalid IP address' };
|
||||
return { valid: false, message: _('Invalid IP address') };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user