Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Corrected whois.cctld.by parser to skip last line

  • Loading branch information...
commit ea9f4c5b33b1ca14cecb5a8e113ffde51c0f7ba3 1 parent 62be50e
@kliuchnikau kliuchnikau authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/whois/record/parser/scanners/whois.cctld.by.rb
View
7 lib/whois/record/parser/scanners/whois.cctld.by.rb
@@ -26,6 +26,7 @@ class WhoisCctldBy < Base
:scan_available,
:scan_keyvalue,
:skip_empty_line,
+ :skip_dash_line,
:skip_provider_signature,
]
@@ -35,8 +36,12 @@ class WhoisCctldBy < Base
end
end
+ tokenizer :skip_dash_line do
+ @input.skip(/^-+\n/)
+ end
+
tokenizer :skip_provider_signature do
- @input.scan(/^\S(.+)\n/)
+ @input.scan(/^(.+)\n/)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.