From f967fc449b9c9d57075edeb27e4ed8627c3cd406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Sat, 23 Jun 2018 21:00:00 +0900 Subject: [PATCH] Fixed Get Apple OSX Version method Modified RegEx pattern to look for new SDK pattern 'macOS' --- bin/templates/scripts/cordova/lib/versions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/templates/scripts/cordova/lib/versions.js b/bin/templates/scripts/cordova/lib/versions.js index c6a41b837..d9ba5e31b 100755 --- a/bin/templates/scripts/cordova/lib/versions.js +++ b/bin/templates/scripts/cordova/lib/versions.js @@ -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)) {