mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-18 22:23:07 -03:00
Added classifier to the sequence of strategies
This commit is contained in:
@ -52,7 +52,11 @@ func GetLanguage(filename string, content []byte) string {
|
||||
return lang
|
||||
}
|
||||
|
||||
lang, _ := GetLanguageByContent(filename, content)
|
||||
if lang, safe := GetLanguageByContent(filename, content); safe {
|
||||
return lang
|
||||
}
|
||||
|
||||
lang := GetLanguageByClassifier(content, nil, nil)
|
||||
return lang
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user