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 b48f09e commit efd4a1dCopy full SHA for efd4a1d
Sources/_StringProcessing/Engine/MEQuantify.swift
@@ -226,6 +226,11 @@ extension Processor {
226
&& payload.maxExtraTrips == nil)
227
228
// Match at least once
229
+ //
230
+ // NOTE: Due to newline-sequence in scalar-semantic mode advancing two
231
+ // positions, we can't just have doRunEagerZeroOrMoreQuantify return the
232
+ // range-end and advance the range-start ourselves. Instead, we do one
233
+ // call before looping.
234
guard let next = doQuantifyMatch(payload) else {
235
signalFailure()
236
return false
0 commit comments