Revert "Merge pull request #1335 from Toddyclipsgg/diff-view-v2"
This reverts commit871aefbe83, reversing changes made to8c72ed76b3.
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
export const getLanguageFromExtension = (ext: string): string => {
|
||||
const map: Record<string, string> = {
|
||||
js: "javascript",
|
||||
jsx: "jsx",
|
||||
ts: "typescript",
|
||||
tsx: "tsx",
|
||||
json: "json",
|
||||
html: "html",
|
||||
css: "css",
|
||||
py: "python",
|
||||
java: "java",
|
||||
rb: "ruby",
|
||||
cpp: "cpp",
|
||||
c: "c",
|
||||
cs: "csharp",
|
||||
go: "go",
|
||||
rs: "rust",
|
||||
php: "php",
|
||||
swift: "swift",
|
||||
md: "plaintext",
|
||||
sh: "bash",
|
||||
};
|
||||
return map[ext] || "typescript";
|
||||
};
|
||||
Reference in New Issue
Block a user