mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 14:43:05 -03:00
added language detection by filename strategy
This commit is contained in:
@ -48,7 +48,7 @@ func main() {
|
||||
return nil
|
||||
}
|
||||
|
||||
l := slinguist.GetLanguage(path, content)
|
||||
l := slinguist.GetLanguage(filepath.Base(path), content)
|
||||
|
||||
r, err := filepath.Rel(root, path)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user