From dadfc86f51d8cfc4f6157f756c6627e3d927d1dc Mon Sep 17 00:00:00 2001 From: tienifr Date: Thu, 30 Nov 2023 23:36:41 +0700 Subject: [PATCH] fix merge error --- src/libs/ValidationUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/ValidationUtils.ts b/src/libs/ValidationUtils.ts index 49971c5a140b..0adacac4035a 100644 --- a/src/libs/ValidationUtils.ts +++ b/src/libs/ValidationUtils.ts @@ -189,7 +189,8 @@ function getAgeRequirementError(date: string, minimumAge: number, maximumAge: nu * http/https/ftp URL scheme required. */ function isValidWebsite(url: string): boolean { - return new RegExp(`^${URL_REGEX_WITH_REQUIRED_PROTOCOL}$`, 'i').test(url); + const isLowerCase = url === url.toLowerCase(); + return new RegExp(`^${URL_REGEX_WITH_REQUIRED_PROTOCOL}$`, 'i').test(url) && isLowerCase; } function isValidUSPhone(phoneNumber = '', isCountryCodeOptional?: boolean): boolean {