You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2016/06/01 11:58:55 UTC

[2/2] cordova-paramedic git commit: Choose wp8.1 target more gracefully

Choose wp8.1 target more gracefully


Project: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/commit/ef226cab
Tree: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/tree/ef226cab
Diff: http://git-wip-us.apache.org/repos/asf/cordova-paramedic/diff/ef226cab

Branch: refs/heads/master
Commit: ef226cab00f5f56d1a055b8f8942036325361e2e
Parents: 85c71c9
Author: Vladimir Kotikov <v-...@microsoft.com>
Authored: Wed Jun 1 14:33:29 2016 +0300
Committer: Vladimir Kotikov <v-...@microsoft.com>
Committed: Wed Jun 1 14:58:22 2016 +0300

----------------------------------------------------------------------
 lib/ParamedicTargetChooser.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-paramedic/blob/ef226cab/lib/ParamedicTargetChooser.js
----------------------------------------------------------------------
diff --git a/lib/ParamedicTargetChooser.js b/lib/ParamedicTargetChooser.js
index bb4c6f3..424f4c0 100644
--- a/lib/ParamedicTargetChooser.js
+++ b/lib/ParamedicTargetChooser.js
@@ -92,8 +92,12 @@ ParamedicTargetChooser.prototype.chooseTargetForWindows = function(emulator) {
         return Q({target: undefined});
     }
 
-    return Q({target: lines[1].split('. ')[0].trim()});
-}
+    var targets = lines.filter(function (line) {
+        return /^\d+\.\s+/.test(line);
+    });
+
+    return Q({target: targets[0].split('. ')[0].trim()});
+};
 
 ParamedicTargetChooser.prototype.chooseTargetForIOS = function(emulator) {
     logger.info("cordova-paramedic: Choosing Target for iOS");


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org