mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
CB-9430 Fixes check_reqs failure when javac returns an extra line
This commit is contained in:
parent
64f89c5eda
commit
e5506d40bc
@ -155,7 +155,8 @@ module.exports.check_java = function() {
|
||||
// javac writes version info to stderr instead of stdout
|
||||
return tryCommand('javac -version', msg, true);
|
||||
}).then(function (output) {
|
||||
return /^javac ((?:\d+\.)+(?:\d+))/i.exec(output)[1];
|
||||
var match = /javac ((?:\d+\.)+(?:\d+))/i.exec(output)[1];
|
||||
return match && match[1];
|
||||
});
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user