Skip to content

Commit 3ee106d

Browse files
committed
Add hasPassedBefore flag in SingleLineAssertion to track successful pattern matches
1 parent 9c8b3ea commit 3ee106d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/assertions/single_line_assertion.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func (a *SingleLineAssertion) Run(screenState screen_state.ScreenState, startRow
4242

4343
for _, pattern := range a.FallbackPatterns {
4444
if pattern.Match([]byte(row.String())) {
45+
a.hasPassedBefore = true
4546
return processedRowCount, nil
4647
}
4748
}

0 commit comments

Comments
 (0)