mirror of
https://github.com/pomber/git-history.git
synced 2024-11-29 10:03:50 +03:00
Merge pull request #38 from yershalom/master
Add kotlin to language-detector
This commit is contained in:
commit
c65994da6f
@ -27,6 +27,7 @@ const filenameRegex = [
|
||||
{ lang: "handlebars", regex: /\.hbs$/i },
|
||||
{ lang: "haskell", regex: /\.hs$/i },
|
||||
{ lang: "java", regex: /\.java$/i },
|
||||
{ lang: "kotlin", regex: /\.kt$/i },
|
||||
{ lang: "lua", regex: /\.lua$/i },
|
||||
{ lang: "markdown", regex: /\.md$/i },
|
||||
{ lang: "msdax", regex: /\.msdax$/i },
|
||||
|
@ -146,6 +146,10 @@ describe("Can detect language", () => {
|
||||
expect(getLanguage("my-file.java")).toBe("java");
|
||||
});
|
||||
|
||||
test("kotlin", () => {
|
||||
expect(getLanguage("my-file.kt")).toBe("kotlin");
|
||||
});
|
||||
|
||||
test("lua", () => {
|
||||
expect(getLanguage("my-file.lua")).toBe("lua");
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user