Skip to content

Commit 5873c3b

Browse files
committed
Fix offset.
1 parent d601dc7 commit 5873c3b

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

StreamRegex.Extensions/SlidingBufferExtensions.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,6 @@ public static SlidingBufferMatchCollection<SlidingBufferMatch> GetMatchCollectio
225225
match.Index += offset > 0 ? offset - opts.OverlapSize : 0;
226226
collection.AddMatch(match);
227227
}
228-
229-
if (offset == 0)
230-
{
231-
offset -= opts.OverlapSize;
232-
}
233228
offset += numChars;
234229
// This is an indication there is no more to read.
235230
// It protects us from trying to take a negative sized slice below for small strings.

0 commit comments

Comments
 (0)