Skip to content

Commit

Permalink
Merge pull request pomber#112 from pomber/fix-bat-files
Browse files Browse the repository at this point in the history
Support .bat
  • Loading branch information
pomber authored Mar 1, 2019
2 parents 8edd05d + 0fadbdf commit 6550ab3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/git-providers/language-detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const filenameRegex = [
{ lang: "scss", regex: /\.scss$/i },
{ lang: "ini", regex: /\.ini$|.editorconfig$/i },
{ lang: "markup", regex: /\.xml$|\.html$|\.htm$|\.svg$|\.mathml$/i },
{ lang: "bat", regex: /\.bat$/i },
{ lang: "batch", regex: /\.bat$/i },
{ lang: "clojure", regex: /\.clj$/i },
{ lang: "coffeescript", regex: /\.coffee$/i },
{ lang: "cpp", regex: /\.cpp$|\.cc$/i },
Expand Down
2 changes: 1 addition & 1 deletion src/git-providers/language-detector.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe("Can detect language", () => {
});

test("bat", () => {
expect(getLanguage("my-file.bat")).toBe("bat");
expect(getLanguage("my-file.bat")).toBe("batch");
});

test("clojure", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Scroller({
top,
setTop
}) {
const ref = React.useRef(null);
const ref = React.useRef();
const height = useHeight(ref);

const children = useChildren({
Expand Down

0 comments on commit 6550ab3

Please sign in to comment.