Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
need to restrict search even more
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbommarito committed Jun 13, 2016
1 parent 4f963a6 commit c583a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testUtil.ts
Expand Up @@ -111,7 +111,7 @@ export class TestUtil {
// get the most recent iOS simulator to run tests on
this.getProcessOutput("xcrun simctl list")
.then(function (listOfDevicesWithDevicePairs) {
var listOfDevices: string = listOfDevicesWithDevicePairs.slice(0, listOfDevicesWithDevicePairs.indexOf("== Device Pairs =="));
var listOfDevices: string = listOfDevicesWithDevicePairs.slice(listOfDevicesWithDevicePairs.indexOf("-- iOS"), listOfDevicesWithDevicePairs.indexOf("-- tvOS"));
var phoneDevice = /iPhone (\S* )*(\(([0-9A-Z-]*)\))/g;
var match = listOfDevices.match(phoneDevice);
onReadIOSEmuName(match[match.length - 1]);
Expand Down

0 comments on commit c583a94

Please sign in to comment.