mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-06-16 13:46:16 +02:00
Format all files with Prettier
This commit is contained in:
@ -30,7 +30,10 @@ const REs = {
|
||||
};
|
||||
|
||||
const createValidator = (fieldType) => (value) => {
|
||||
if (value && value !== "") return REs[fieldType].test(value) ? undefined : ERROR_MESSAGES[fieldType];
|
||||
if (value && value !== "")
|
||||
return REs[fieldType].test(value)
|
||||
? undefined
|
||||
: ERROR_MESSAGES[fieldType];
|
||||
};
|
||||
|
||||
const validateIPv4Address = createValidator("IPv4");
|
||||
|
Reference in New Issue
Block a user