Skip to content

Commit

Permalink
feat: add support for .sg domains (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg authored Jul 15, 2022
1 parent 99a412b commit 16a71a2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/rdap/rdap.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var (
"02-January-2006", // .ie
"2006.01.02 15:04:05", // .pl
"02-Jan-2006", // .co.uk
"02-Jan-2006 15:04:05", // .sg
"2006-01-02T15:04:05Z", // .co
"2006/01/02", // .ca
"2006-01-02 (YYYY-MM-DD)", // .tw
Expand Down
1 change: 1 addition & 0 deletions internal/rdap/rdap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func TestRdapParsing(t *testing.T) {
{domain: "nic.ua", err: "No RDAP servers found for 'nic.ua'"},
{domain: "taiwannews.com.tw", err: "No RDAP servers found for 'taiwannews.com.tw'"},
{domain: "bbc.co.uk", err: "No RDAP servers found for 'bbc.co.uk'"},
{domain: "google.sg", err: "No RDAP servers found for 'google.sg'"},
{domain: "google.sk", err: "No RDAP servers found for 'google.sk'"},
{domain: "google.ro", err: "No RDAP servers found for 'google.ro'"},
{domain: "watchub.pw", err: ""},
Expand Down
1 change: 1 addition & 0 deletions internal/whois/whois.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var (
"02-January-2006", // .ie
"2006.01.02 15:04:05", // .pl
"02-Jan-2006", // .co.uk
"02-Jan-2006 15:04:05", // .sg
"2006-01-02T15:04:05Z", // .co
"2006/01/02", // .ca, .jp
"2006-01-02 (YYYY-MM-DD)", // .tw
Expand Down
1 change: 1 addition & 0 deletions internal/whois/whois_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func TestWhoisParsing(t *testing.T) {
{domain: "nic.ua", err: ""},
{domain: "google.com.tw", err: ""},
{domain: "bbc.co.uk", err: ""},
{domain: "google.sg", err: ""},
{domain: "google.sk", err: ""},
{domain: "google.ro", err: ""},
{domain: "google.pt", err: "i/o timeout"},
Expand Down

0 comments on commit 16a71a2

Please sign in to comment.