diff --git a/lib/regexp-examples/groups.rb b/lib/regexp-examples/groups.rb index cf448f3..4f858c6 100644 --- a/lib/regexp-examples/groups.rb +++ b/lib/regexp-examples/groups.rb @@ -184,6 +184,7 @@ def result_by_method(method) .map do |result| GroupResult.new(result) end + .uniq end def merge_if_orgroup(repeaters)