performance boost in finding matchign spec lines
This commit is contained in:
parent
3c993001de
commit
af14f69a07
@ -43,4 +43,6 @@ class window.HeadlessReporterResult
|
||||
if index > bestChoice.accuracy
|
||||
bestChoice = { accuracy: index, file: file, lineNumber: lineNumber }
|
||||
|
||||
break if index == splitName.length
|
||||
|
||||
bestChoice
|
||||
|
@ -70,6 +70,7 @@
|
||||
lineNumber: lineNumber
|
||||
};
|
||||
}
|
||||
if (index === splitName.length) break;
|
||||
}
|
||||
return bestChoice;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user