Commit 59a29932 authored by Phil Hughes's avatar Phil Hughes

Merge branch...

Merge branch '216313-the-build-gradle-kts-file-should-have-the-gradle-icon-on-the-project-overview' into 'master'

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

See merge request gitlab-org/gitlab!77001
parents 0e87b8fc 7c92ba99
......@@ -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