Remove information about web-based whois form name fields

This commit is contained in:
Maciej Szlosarczyk 2018-04-27 14:10:16 +03:00
parent 20d341f2e5
commit c08561fa0d
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
2 changed files with 8 additions and 9 deletions

View file

@ -1,7 +1,6 @@
<%- if json['disclaimer'].present? %>
<%- if json['disclaimer'].present? -%>
<%= json['disclaimer'].scan(/\S.{0,72}\S(?=\s|$)|\S+/).join("\n") %>
<%- end %>
<%- end -%>
Estonia .ee Top Level Domain WHOIS server
Domain:
@ -27,18 +26,18 @@ changed: <%= json['registrant_changed'].to_s.tr('T',' ').sub('+', ' +') %>
<%- if json['admin_contacts'].present? -%>
Administrative contact:
<%- for contact in json['admin_contacts'] -%>
name: Not Disclosed - Visit www.internet.ee for webbased WHOIS
name: Not Disclosed
email: Not Disclosed - Visit www.internet.ee for webbased WHOIS
changed: Not Disclosed - Visit www.internet.ee for webbased WHOIS
changed: Not Disclosed
<%- end -%>
<%- end -%>
<% if json['tech_contacts'].present? %>
Technical contact:
<%- for contact in json['tech_contacts'] -%>
name: Not Disclosed - Visit www.internet.ee for webbased WHOIS
name: Not Disclosed
email: Not Disclosed - Visit www.internet.ee for webbased WHOIS
changed: Not Disclosed - Visit www.internet.ee for webbased WHOIS
changed: Not Disclosed
<%- end -%>
<%- end -%>

View file

@ -39,9 +39,9 @@ class WhoisRecordTest < ActiveSupport::TestCase
end
expected_technical_contact = begin
'Technical contact:\n' \
'name: Not Disclosed - Visit www.internet.ee for webbased WHOIS\n' \
'name: Not Disclosed\n' \
'email: Not Disclosed - Visit www.internet.ee for webbased WHOIS\n' \
'changed: Not Disclosed - Visit www.internet.ee for webbased WHOIS'
'changed: Not Disclosed'
end
regexp_contact = Regexp.new(expected_technical_contact, Regexp::MULTILINE)