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 {