mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-04 00:13:20 +08:00
Tweaking the regex
This commit is contained in:
parent
47abde2f8d
commit
eaf9b319ca
@ -154,7 +154,7 @@ module.exports.check_java = function() {
|
|||||||
.then(function (output) {
|
.then(function (output) {
|
||||||
console.log(output);
|
console.log(output);
|
||||||
//Let's check for at least Java 8, and keep it future proof so we can support Java 10
|
//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];
|
return match && match[1];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user