Skip to content

Commit

Permalink
Fixed Get Apple OSX Version method
Browse files Browse the repository at this point in the history
Modified RegEx pattern to look for new SDK pattern 'macOS'
  • Loading branch information
erisu authored and Chris Brody committed Jul 31, 2018
1 parent bff9bca commit f967fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/scripts/cordova/lib/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ exports.get_apple_osx_version = function () {
return d.promise.then(function (output) {
var regex = /[0-9]*\.[0-9]*/;
var versions = [];
var regexOSX = /^OS X \d+/;
var regexOSX = /^macOS \d+/;
output = output.split('\n');
for (var i = 0; i < output.length; i++) {
if (output[i].trim().match(regexOSX)) {
Expand Down

0 comments on commit f967fc4

Please sign in to comment.