From 9366961d026903cd15af44f0257e6989e1efaa37 Mon Sep 17 00:00:00 2001 From: RomainBerthet <36803308+RomainBerthet@users.noreply.github.com> Date: Thu, 4 Jan 2024 23:44:47 +0100 Subject: [PATCH] Implement case-insensitive matching for file extensions (#3570) 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 992773a34..90ee6cd63 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; }