You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which fails to type check because ZeroOrMore takes the component first and the behavior second when not passed a trailing closure that produces a component.
The text was updated successfully, but these errors were encountered:
Yeah the . of a regex literal has different newline matching behavior to .any. However looks like this is still an issue for other elements, e.g on main /\d*?/ gets refactored to:
When rendering a regex as DSL, the parameter order for atoms that
include a non-default repetition behavior is backwards -- the
pattern should come before the repetition behavior. With this
change, the correct RegexBuilder code is provided:
let regex = /\d+?/
// converted code:
let regex = Regex {
OneOrMore(.digit, .reluctant)
}
Fixesapple#608.
In Xcode 14.1 beta 3, this regex
#/(.*?)/#
Expands to this regex builder
Which fails to type check because
ZeroOrMore
takes the component first and the behavior second when not passed a trailing closure that produces a component.The text was updated successfully, but these errors were encountered: