Skip to content

Commit

Permalink
fix: normalize file extensions to lowercase (#101)
Browse files Browse the repository at this point in the history
Adds support for upper/mixed case file extensions.
  • Loading branch information
uncenter authored Jul 11, 2024
1 parent 39b5b42 commit 373da7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/entries/content/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export async function replaceIcon(icon: HTMLElement, row: HTMLElement) {
// https://github.com/microsoft/vscode/issues/116199
if (fileName.length <= 255) {
for (let i = 0; i < fileName.length; i += 1) {
if (fileName[i] === '.') fileExtensions.push(fileName.slice(i + 1));
if (fileName[i] === '.')
fileExtensions.push(fileName.toLowerCase().slice(i + 1));
}
}

Expand Down

0 comments on commit 373da7b

Please sign in to comment.