From bd1587da6c302ceeeff4d466aaad4f7047928505 Mon Sep 17 00:00:00 2001 From: Tom Lord Date: Fri, 17 Jul 2015 16:33:06 +0100 Subject: [PATCH] Only return unique OrGroup results --- lib/regexp-examples/groups.rb | 1 + 1 file changed, 1 insertion(+) 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)