Enable file type icons for all cases, not only lower case file extensions
Summary
The new file type icons should be enabled for all cases. Right now they only match for lower case file name extensions.
Works:
file1.html
Does not work:
file2.hTml
file3.HTML
This has been reported on Twitter and we have discussed it in Slack.
The problem occurs in the Web IDE too, where this feature has been sourced from.
Steps to reproduce
- Create a new project or existing one
- Add multiple files:
file1.html
andfile2.hTmL
andfile3.HTML
- Verify the icon
Example Project
Branch: https://gitlab.com/dnsmichi/tech-evangelism/-/tree/filetypes-icons-lowercase
What is the current bug behavior?
Only the lower case extension shows the icon.
What is the expected correct behavior?
All extensions match the file type icon.
Relevant logs and/or screenshots
From this tweet:
Web IDE
Output of checks
This bug happens on GitLab.com and possible on self-hosted too.
Possible fixes
Edited by Michael Friedrich