Skip to content

Commit b0f1dcb

Browse files
committed
Revert "skip alternation (|) tokens"
1 parent 6eaa635 commit b0f1dcb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Type/Regex/RegexGroupParser.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,6 @@ private function createGroupType(TreeNode $group, bool $maybeConstant, string $p
286286
if ($rootAlternation !== null) {
287287
$types = [];
288288
foreach ($rootAlternation->getChildren() as $alternative) {
289-
if ($alternative->getValueToken() === 'alternation') {
290-
continue;
291-
}
292-
293289
$types[] = $this->createGroupType($alternative, $maybeConstant, $patternModifiers);
294290
}
295291

0 commit comments

Comments
 (0)