lib/gman/identifier.rb in gman-7.0.1 vs lib/gman/identifier.rb in gman-7.0.2

- old
+ new

@@ -74,11 +74,11 @@ def list_category @list_category ||= begin match = Gman.list.public_suffix_list.find(domain.to_s) return unless match - regex = %r{// ([^\n]+)\n?[^/]*\n#{Regexp.escape(match.name)}\n}im + regex = %r{// ([^\n]+)\n?[^/]*\n#{Regexp.escape(match.value)}\n}im matches = Gman.list.contents.match(regex) matches[1] if matches end end @@ -89,10 +89,10 @@ def dotgov_listing return @dotgov_listing if defined? @dotgov_listing return unless dotgov? @dotgov_listing = Gman.dotgov_list.find do |listing| - listing['Domain Name'].casecmp("#{domain.sld}.gov") == 0 + listing['Domain Name'].casecmp("#{domain.sld}.gov").zero? end end class << self def dotgov_list