lib/whois/parsers/whois.monic.mo.rb in whois-parser-1.2.0 vs lib/whois/parsers/whois.monic.mo.rb in whois-parser-2.0.0

- old
+ new

@@ -1,11 +1,11 @@ #-- # Ruby Whois # # An intelligent pure Ruby WHOIS client and parser. # -# Copyright (c) 2009-2018 Simone Carletti <weppos@weppos.net> +# Copyright (c) 2009-2022 Simone Carletti <weppos@weppos.net> #++ require_relative 'base' @@ -23,11 +23,11 @@ property_not_supported :disclaimer property_supported :domain do if content_for_scanner =~ /Domain Name:\s+(.+)\n/ - $1.downcase + ::Regexp.last_match(1).downcase end end property_not_supported :domain_id @@ -57,10 +57,10 @@ property_supported :registrar do if content_for_scanner =~ /Registrar:\s+(.+)\n/ Parser::Registrar.new( - :name => $1 + :name => ::Regexp.last_match(1) ) end end property_not_supported :registrant_contacts