Skip to content

Commit 98bcfe0

Browse files
authored
Merge pull request #23293 from osunnarvik/parse_simulator_list
Parse simulator list
2 parents 6c83945 + 9a8c959 commit 98bcfe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local-cli/runIOS/findMatchingSimulator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function findMatchingSimulator(simulators, simulatorString) {
4141
var match;
4242
for (let version in devices) {
4343
// Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
44-
if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {
44+
if (!version.includes('iOS') && !version.includes('tvOS')) {
4545
continue;
4646
}
4747
if (simulatorVersion && !version.endsWith(simulatorVersion)) {

0 commit comments

Comments
 (0)