diff options
-rw-r--r-- | common/herrors/error_locator.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/herrors/error_locator.go b/common/herrors/error_locator.go index 3a72f4790..15de6d318 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 { |