Skip to content

Commit

Permalink
rm length conditional from get output match (#162225)
Browse files Browse the repository at this point in the history
fix 162211
  • Loading branch information
meganrogge committed Sep 28, 2022
1 parent ae526a1 commit 0f6d665
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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--) {
Expand Down

0 comments on commit 0f6d665

Please sign in to comment.