remove overhang from previous round :)

This commit is contained in:
Tommy Verrall
2023-10-26 17:00:52 +02:00
parent 31740f70e3
commit d95f0e6f54
+1 -3
View File
@@ -48,14 +48,12 @@ export const validateAmount = async (
};
export const isValidHostname = (value: string) => {
const trimmedValue = value.trim();
const hostnameSchema = Joi.alternatives().try(
Joi.string().hostname(),
Joi.string().ip({ version: ['ipv4', 'ipv6'] }),
);
const result = hostnameSchema.validate(trimmedValue);
const result = hostnameSchema.validate(value);
return !result.error;
};