diff --git a/internal/rdap/rdap.go b/internal/rdap/rdap.go index 3b85650..7d8d5f2 100644 --- a/internal/rdap/rdap.go +++ b/internal/rdap/rdap.go @@ -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 diff --git a/internal/rdap/rdap_test.go b/internal/rdap/rdap_test.go index 0325fc7..2b40ab1 100644 --- a/internal/rdap/rdap_test.go +++ b/internal/rdap/rdap_test.go @@ -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: ""}, diff --git a/internal/whois/whois.go b/internal/whois/whois.go index 3a6cb3a..06c736e 100644 --- a/internal/whois/whois.go +++ b/internal/whois/whois.go @@ -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 diff --git a/internal/whois/whois_test.go b/internal/whois/whois_test.go index b18cb9d..99565d0 100644 --- a/internal/whois/whois_test.go +++ b/internal/whois/whois_test.go @@ -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"},