Skip to content

Commit

Permalink
Only return unique OrGroup results
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Lord committed Jul 17, 2015
1 parent f6239f1 commit bd1587d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/regexp-examples/groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def result_by_method(method)
.map do |result|
GroupResult.new(result)
end
.uniq
end

def merge_if_orgroup(repeaters)
Expand Down

0 comments on commit bd1587d

Please sign in to comment.