lib/namor/namor.rb in namor-0.4.1 vs lib/namor/namor.rb in namor-0.4.2
- old
+ new
@@ -97,10 +97,10 @@
end
def extract_with_cluster(name, opts = {})
ary = extract(name, opts)
return [] if ary.empty?
- ary << ary.last.gsub(/\W/, '_')
+ ary << ary[3].gsub(/\W/, '_')
end
def components(*args)
suppression_list = @config[:suppress] ? @config[:suppress].map(&:upcase) : []