1 parent d601dc7 commit 5873c3bCopy full SHA for 5873c3b
1 file changed
StreamRegex.Extensions/SlidingBufferExtensions.cs
@@ -225,11 +225,6 @@ public static SlidingBufferMatchCollection<SlidingBufferMatch> GetMatchCollectio
225
match.Index += offset > 0 ? offset - opts.OverlapSize : 0;
226
collection.AddMatch(match);
227
}
228
-
229
- if (offset == 0)
230
- {
231
- offset -= opts.OverlapSize;
232
- }
233
offset += numChars;
234
// This is an indication there is no more to read.
235
// It protects us from trying to take a negative sized slice below for small strings.
0 commit comments