lib/regexp-examples/parser.rb in regexp-examples-1.4.0 vs lib/regexp-examples/parser.rb in regexp-examples-1.4.1

- old
+ new

@@ -27,10 +27,10 @@ @num_groups = 0 @current_position = 0 end def parse - repeaters = [] + repeaters = [PlaceHolderGroup.new] until end_of_regexp group = parse_group(repeaters) return [group] if group.is_a? OrGroup @current_position += 1 repeaters << parse_repeater(group)