Skip to content

Commit 93a220b

Browse files
committed
Address review comments
1 parent 50b2f91 commit 93a220b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/_StringProcessing/Engine/MEQuantify.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ extension Processor {
130130
return false
131131
}
132132
if let savePointRange {
133+
assert(!produceSavePointRange)
133134
savePoints.append(makeQuantifiedSavePoint(
134135
savePointRange, isScalarSemantics: payload.isScalarSemantics))
135136
}
@@ -203,7 +204,10 @@ extension String {
203204
// one position, because newline-sequence in scalar semantic mode still
204205
// matches two scalars
205206

206-
return (currentPosition, rangeStart..<rangeEnd)
207+
return (
208+
currentPosition,
209+
Range(uncheckedBounds: (lower: rangeStart, upper: rangeEnd))
210+
)
207211
}
208212

209213
// NOTE: [Zero|One]OrMore overloads are to specialize the inlined run loop,

0 commit comments

Comments
 (0)