From f75d688551e6f6d07671ef284461ea0d29c9efaa Mon Sep 17 00:00:00 2001 From: RomainBerthet <36803308+RomainBerthet@users.noreply.github.com> Date: Wed, 20 Dec 2023 10:08:22 +0100 Subject: [PATCH] Implement case-insensitive matching for file extensions Enable case-insensitive matching when determining file extensions in the application. This enhancement ensures that the system accurately recognizes and processes file extensions regardless of the case used in the filenames. --- projects/aca-shared/rules/src/app.rules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/aca-shared/rules/src/app.rules.ts b/projects/aca-shared/rules/src/app.rules.ts index 992773a346..90ee6cd632 100644 --- a/projects/aca-shared/rules/src/app.rules.ts +++ b/projects/aca-shared/rules/src/app.rules.ts @@ -71,7 +71,7 @@ export const supportedExtensions = { export function getFileExtension(fileName: string): string | null { if (fileName) { - const match = fileName.match(/\.([^\./\?\#]+)($|\?|\#)/); + const match = fileName.toLowerCase().match(/\.([^\./\?\#]+)($|\?|\#)/); return match ? match[1] : null; }