Skip to content

Commit fe9d7be

Browse files
committed
Allow tools to work on .JS or .Js files (not just .js)
1 parent cd5dc8a commit fe9d7be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/espruino-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ var isNextValidHEX = function(next) {
8787
return isNextValidFileType(next, ".hex");
8888
}
8989
var isNextValidJS = function(next) {
90-
return next && !isNextValidJSON(next) && next.indexOf(".js") >= 0;
90+
return next && !isNextValidJSON(next) && next.toLowerCase().indexOf(".js") >= 0;
9191
}
9292
var isNextValid = function(next) {
9393
return next && next[0]!=='-';

0 commit comments

Comments
 (0)