We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5dc8a commit fe9d7beCopy full SHA for fe9d7be
bin/espruino-cli.js
@@ -87,7 +87,7 @@ var isNextValidHEX = function(next) {
87
return isNextValidFileType(next, ".hex");
88
}
89
var isNextValidJS = function(next) {
90
- return next && !isNextValidJSON(next) && next.indexOf(".js") >= 0;
+ return next && !isNextValidJSON(next) && next.toLowerCase().indexOf(".js") >= 0;
91
92
var isNextValid = function(next) {
93
return next && next[0]!=='-';
0 commit comments