mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 22:53:05 -03:00
unified GetLanguage function
This commit is contained in:
@ -9,7 +9,7 @@ func GetLanguageByExtension(filename string) (lang string, safe bool) {
|
||||
ext := strings.ToLower(filepath.Ext(filename))
|
||||
|
||||
lang = OtherLanguage
|
||||
langs, ok := LanguagesByExtension[ext]
|
||||
langs, ok := languagesByExtension[ext]
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user