We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50b2f91 commit 93a220bCopy full SHA for 93a220b
Sources/_StringProcessing/Engine/MEQuantify.swift
@@ -130,6 +130,7 @@ extension Processor {
130
return false
131
}
132
if let savePointRange {
133
+ assert(!produceSavePointRange)
134
savePoints.append(makeQuantifiedSavePoint(
135
savePointRange, isScalarSemantics: payload.isScalarSemantics))
136
@@ -203,7 +204,10 @@ extension String {
203
204
// one position, because newline-sequence in scalar semantic mode still
205
// matches two scalars
206
- return (currentPosition, rangeStart..<rangeEnd)
207
+ return (
208
+ currentPosition,
209
+ Range(uncheckedBounds: (lower: rangeStart, upper: rangeEnd))
210
+ )
211
212
213
// NOTE: [Zero|One]OrMore overloads are to specialize the inlined run loop,
0 commit comments