Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit c7855a0

Browse files
author
Jeff Verkoeyen
committed
Use strpos instead of preg to match error: lines.
Reduces overall string processing time by roughly half.
1 parent 5d560f0 commit c7855a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/XcodeTestResultParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function parseTestResults($path, $test_results) {
6363
continue;
6464
}
6565

66-
if (preg_match('/.+?error:/', $line) === 1) {
66+
if (strpos($line, 'error:') !== false) {
6767
$result = new ArcanistUnitTestResult();
6868
$result->setName('xcode-unit-engine');
6969
foreach ($this->xcodeargs as $arg) {

0 commit comments

Comments
 (0)