Skip to content

Commit d28a0fc

Browse files
committed
Update DateScrubber.cs
1 parent bb269f9 commit d28a0fc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Verify/Serialization/Scrubbers/DateScrubber.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,14 @@ static void OnCrossChunk(
244244

245245
var slice = buffer[..length];
246246

247-
if (context.TryConvert(slice, context.Format, context.Counter, context.Culture, out var convert))
247+
if (!context.TryConvert(slice, context.Format, context.Counter, context.Culture, out var convert))
248248
{
249-
addMatch(new(absoluteStartPosition, length, convert));
250-
// Found match at this position
251-
return;
249+
continue;
252250
}
251+
252+
addMatch(new(absoluteStartPosition, length, convert));
253+
// Found match at this position
254+
return;
253255
}
254256
}
255257

0 commit comments

Comments
 (0)