Commit 7c92ba99 authored by Marcel van Remmerden's avatar Marcel van Remmerden Committed by Phil Hughes

Change icon for `*.gradle.kts` files to gradle

parent e6cb3266
......@@ -388,6 +388,10 @@ const fileExtensionIcons = {
log: 'log',
};
const twoFileExtensionIcons = {
'gradle.kts': 'gradle',
};
const fileNameIcons = {
'.jscsrc': 'json',
'.jshintrc': 'json',
......@@ -598,6 +602,9 @@ const fileNameIcons = {
export default function getIconForFile(name) {
return (
fileNameIcons[name] || fileExtensionIcons[name ? name.split('.').pop().toLowerCase() : ''] || ''
fileNameIcons[name] ||
twoFileExtensionIcons[name ? name.split('.').slice(-2).join('.') : ''] ||
fileExtensionIcons[name ? name.split('.').pop().toLowerCase() : ''] ||
''
);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment