Skip to content

Commit

Permalink
Implement case-insensitive matching for file extensions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RomainBerthet authored and DenysVuika committed Jan 4, 2024
1 parent 33c3d6f commit f75d688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/aca-shared/rules/src/app.rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f75d688

Please sign in to comment.