Added .yml, .yaml and .toml extensions. (#816)

These are common config file extensions.
This commit is contained in:
Sebjugate 2022-07-13 18:46:02 -07:00 committed by GitHub
parent afe1227caa
commit 3a3033bdce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2745,6 +2745,9 @@ function fm_get_file_icon_class($path)
case 'conf':
case 'log':
case 'htaccess':
case 'yaml':
case 'yml':
case 'toml':
$img = 'fa fa-file-text-o';
break;
case 'css':
@ -2911,7 +2914,8 @@ function fm_get_text_exts()
'txt', 'css', 'ini', 'conf', 'log', 'htaccess', 'passwd', 'ftpquota', 'sql', 'js', 'json', 'sh', 'config',
'php', 'php4', 'php5', 'phps', 'phtml', 'htm', 'html', 'shtml', 'xhtml', 'xml', 'xsl', 'm3u', 'm3u8', 'pls', 'cue',
'eml', 'msg', 'csv', 'bat', 'twig', 'tpl', 'md', 'gitignore', 'less', 'sass', 'scss', 'c', 'cpp', 'cs', 'py',
'map', 'lock', 'dtd', 'svg', 'scss', 'asp', 'aspx', 'asx', 'asmx', 'ashx', 'jsx', 'jsp', 'jspx', 'cfm', 'cgi'
'map', 'lock', 'dtd', 'svg', 'scss', 'asp', 'aspx', 'asx', 'asmx', 'ashx', 'jsx', 'jsp', 'jspx', 'cfm', 'cgi',
'yml', 'yaml', 'toml'
);
}