From 6f71e9d20855dd4cab922c7253666eaf7381d266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Fr=C3=B8yland?= <81354124+Andreas-Froyland@users.noreply.github.com> Date: Sun, 28 Sep 2025 21:37:25 +0200 Subject: [PATCH] add toLowerCase() in case file extensions are uppercase --- libraries/helpers/src/utils/valid.url.path.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/helpers/src/utils/valid.url.path.ts b/libraries/helpers/src/utils/valid.url.path.ts index 469f82293..b120cbdc5 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?.endsWith('.png') || text?.endsWith('.jpg') ||