Skip to content

Commit 3d3bd55

Browse files
committed
Now look if the language is known for enry
1 parent e34170a commit 3d3bd55

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ func processLanguageAttr(regExpString string, attribute string) error {
170170
log.Printf(err.Error())
171171
return err
172172
}
173+
lang, _ := GetLanguageByAlias(tokens[1])
174+
if lang != OtherLanguage {
175+
languageGitattributes[regExp] = lang
176+
} else {
177+
languageGitattributes[regExp] = tokens[1]
178+
}
173179

174-
languageGitattributes[regExp] = tokens[1]
175180
return nil
176181
}

0 commit comments

Comments
 (0)