lib/dagger/generator/regexp.rb in ruby-dagger-0.2.0 vs lib/dagger/generator/regexp.rb in ruby-dagger-0.2.1

- old
+ new

@@ -36,9 +36,10 @@ string = dictionary[key] enumerable(regexps).each_with_object({}) do |regexp, matches| matchdata = ::Regexp.new(regexp).match(string) next if matchdata.nil? + matches.merge!(matchdata.named_captures.transform_keys(&:to_sym)) end end end end