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 2227777 commit acd3d1cCopy full SHA for acd3d1c
Sources/_RegexParser/Regex/Parse/Parse.swift
@@ -485,16 +485,7 @@ extension Parser {
485
throw Source.LocatedError(
486
ParseError.expectedCustomCharacterClassMembers, start.location)
487
}
488
-
489
- // If we're done, bail early
490
- let setOp = Member.setOperation(members, binOp, rhs)
491
- if source.tryEat("]") {
492
- return CustomCC(
493
- start, [setOp], loc(start.location.start))
494
- }
495
496
- // Otherwise it's just another member to accumulate
497
- members = [setOp]
+ members = [.setOperation(members, binOp, rhs)]
498
499
if members.none(\.isSemantic) {
500
0 commit comments