Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions core/regexp.rb
Original file line number Diff line number Diff line change
@@ -456,13 +456,8 @@ def process_group_options
end

def process_until_group_finished
if @source[@index].chr == ")"
@index += 1
return
else
push_current_character!
process_until_group_finished
end
push_current_character! until @source[@index].chr == ")"
@index += 1
end

def push_current_character!

0 comments on commit 680c9c8

Please sign in to comment.