Skip to content

Commit

Permalink
feat: support for dd-mm-yyyy expired date format (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
vucong2409 committed Jan 25, 2024
1 parent 8fd3c3e commit b1148a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/whois/whois.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var (
"02.01.2006 15:04:05", // .rs
"02 Jan 2006", // .co.th
"2.1.2006 15:04:05", // .fi
"02-01-2006", // .hk
}

// nolint: lll
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 @@ -40,6 +40,7 @@ func TestWhoisParsing(t *testing.T) {
{domain: "GOOGLE.RS", host: "", err: ""},
{domain: "google.co.th", host: "", err: ""},
{domain: "google.fi", host: "", err: ""},
{domain: "google.com.hk", host: "", err: ""},
{domain: "google.vn", host: "whois.net.vn", err: ""},
} {
tt := tt
Expand Down

0 comments on commit b1148a7

Please sign in to comment.