You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by no...@apache.org on 2023/09/15 00:05:17 UTC

[cordova-paramedic] branch master updated: fix: Finding first ios simulator (#265)

This is an automated email from the ASF dual-hosted git repository.

normanbreau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f5c34b  fix: Finding first ios simulator (#265)
1f5c34b is described below

commit 1f5c34b405d7a952e4457e2f94308d7b75c8f48d
Author: Norman Breau <no...@nbsolutions.ca>
AuthorDate: Thu Sep 14 21:05:12 2023 -0300

    fix: Finding first ios simulator (#265)
---
 lib/utils/utilities.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/utils/utilities.js b/lib/utils/utilities.js
index 744c11a..d7c6b5f 100644
--- a/lib/utils/utilities.js
+++ b/lib/utils/utilities.js
@@ -94,7 +94,7 @@ function getSimulatorModelId (cli, target) {
     const matchingSimulators = allSimulators.filter(i => i.match(target));
     if (!matchingSimulators.length) {
         logger.warn('Unable to find requested simulator, falling back to the first available!');
-        return allSimulators.filter(i => i.match(/^iPhone/))[0].trim();
+        return allSimulators.filter(i => i.match(/iPhone/))[0].trim();
     }
     return matchingSimulators
         .pop()


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