Tweaking the regex

This commit is contained in:
Joe Bowser 2016-09-21 14:16:33 -07:00
parent 47abde2f8d
commit eaf9b319ca

View File

@ -154,7 +154,7 @@ module.exports.check_java = function() {
.then(function (output) {
console.log(output);
//Let's check for at least Java 8, and keep it future proof so we can support Java 10
var match = /javac ((?:1\.)(?:[8-9]\.)(?:\d+))|((?:1\.)(?:[1-9]\d+\.))(?:\d+)/i.exec(output);
var match = /javac ((?:1\.)(?:[8-9]\.)(?:\d+))|((?:1\.)(?:[1-9]\d+\.)(?:\d+))/i.exec(output);
return match && match[1];
});
});