rm length conditional from get output match (#162225)

fix 162211
This commit is contained in:
Megan Rogge 2022-09-28 10:55:17 -07:00 committed by GitHub
parent ae526a1a3c
commit 0f6d665434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -657,9 +657,7 @@ export function getOutputMatchForCommand(executedMarker: IMarker | undefined, en
if (startLine === endLine) {
return undefined;
}
if (outputMatcher?.length && (endLine - startLine) < outputMatcher.length) {
return undefined;
}
let line: string | undefined;
if (outputMatcher?.anchor === 'bottom') {
for (let i = endLine - (outputMatcher.offset || 0); i >= startLine; i--) {