diff --git a/libraries/helpers/src/utils/valid.url.path.ts b/libraries/helpers/src/utils/valid.url.path.ts index fbcc00692..ccbd8b875 100644 --- a/libraries/helpers/src/utils/valid.url.path.ts +++ b/libraries/helpers/src/utils/valid.url.path.ts @@ -7,6 +7,7 @@ import { @ValidatorConstraint({ name: 'checkValidExtension', async: false }) export class ValidUrlExtension implements ValidatorConstraintInterface { validate(text: string, args: ValidationArguments) { + text = text?.toLowerCase(); return ( !!text?.split?.('?')?.[0].endsWith('.png') || !!text?.split?.('?')?.[0].endsWith('.jpg') ||