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
|
if index > bestChoice.accuracy
|
||||||
bestChoice = { accuracy: index, file: file, lineNumber: lineNumber }
|
bestChoice = { accuracy: index, file: file, lineNumber: lineNumber }
|
||||||
|
|
||||||
|
break if index == splitName.length
|
||||||
|
|
||||||
bestChoice
|
bestChoice
|
||||||
|
@ -70,6 +70,7 @@
|
|||||||
lineNumber: lineNumber
|
lineNumber: lineNumber
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
if (index === splitName.length) break;
|
||||||
}
|
}
|
||||||
return bestChoice;
|
return bestChoice;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user