forked from github/cordova-android
Tweaking the regex
This commit is contained in:
parent
47abde2f8d
commit
eaf9b319ca
@ -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];
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user