From d95f0e6f545eb2200e83b39f3e436eb3bc0e9b08 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Thu, 26 Oct 2023 17:00:52 +0200 Subject: [PATCH] remove overhang from previous round :) --- nym-wallet/src/utils/common.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nym-wallet/src/utils/common.ts b/nym-wallet/src/utils/common.ts index 6d953db072..973e766c33 100644 --- a/nym-wallet/src/utils/common.ts +++ b/nym-wallet/src/utils/common.ts @@ -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; };