Skip to content

Commit 802582d

Browse files
committed
add more langToExt
1 parent db7697d commit 802582d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/split-definition.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ function langToExt(lang) {
1717
return (
1818
{
1919
php: '.php',
20-
'c#': '.cs'
20+
'c#': '.cs',
21+
shell: '.sh',
22+
curl: '.sh',
23+
bash: '.sh',
24+
javascript: '.js',
25+
js: '.js',
26+
python: '.py'
2127
}[lang.toLowerCase()] || '.txt'
2228
);
2329
}

0 commit comments

Comments
 (0)