lib/whois/answer/parser/whois.nic.la.rb in whois-1.3.10 vs lib/whois/answer/parser/whois.nic.la.rb in whois-1.3.11

- old
+ new

@@ -33,11 +33,17 @@ # and examples. # class WhoisNicLa < Base property_supported :status do - @status ||= if content_for_scanner =~ /Status:(.*)\n/ - $1 + @status ||= if content_for_scanner =~ /Status:(.+?)\n/ + case $1.downcase + when "ok" then :registered + else + Whois.bug!(ParserError, "Unknown status `#{$1}'.") + end + else + :available end end property_supported :available? do @available ||= (content_for_scanner.strip == "DOMAIN NOT FOUND")