diff --git a/common/herrors/error_locator.go b/common/herrors/error_locator.go index 3a72f479083..15de6d318f1 100644 --- a/common/herrors/error_locator.go +++ b/common/herrors/error_locator.go @@ -173,7 +173,7 @@ func chromaLexerFromType(fileType string) string { } func extNoDelimiter(filename string) string { - return strings.TrimPrefix(".", filepath.Ext(filename)) + return strings.TrimPrefix(filepath.Ext(filename), ".") } func chromaLexerFromFilename(filename string) string {