Skip to content

Commit

Permalink
feat: add support io,cz,fr,ie,pl,co.uk domains
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillmandrygin authored and caarlos0 committed Aug 27, 2018
1 parent 0775d1c commit 4e8989b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
version = "master"

// nolint: lll
re = regexp.MustCompile(`(?i)(Registry Expiry Date|paid-till|Expiration Date|Expiration Time|Expiry.*|expires.*|Expires|Expires On):\s+(.*)`)
re = regexp.MustCompile(`(?i)(Registry Expiry Date|paid-till|Expiration Date|Expiration Time|Expiry.*|expires.*|Expires|Expires On|expire|Renewal Date|Expire Date):\s+(.*)`)

formats = []string{
time.ANSIC,
Expand All @@ -39,6 +39,12 @@ var (
"2006-01-02 15:04:05-07", // .ua
"2006-01-02 15:04:05", // .ch
"2006-01-02T15:04:05Z", // .name
"January 2 2006", // .io
"02.01.2006", // .cz
"02/01/2006", // .fr
"02-January-2006", // .ie
"2006.01.02 15:04:05", // .pl
"02-Jan-2006", // .co.uk
}
)

Expand Down

0 comments on commit 4e8989b

Please sign in to comment.