-
Notifications
You must be signed in to change notification settings - Fork 3
/
parser_xnPlai.go
32 lines (27 loc) · 980 Bytes
/
parser_xnPlai.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package whoisparser
import (
"regexp"
)
var xnPlaiParser = &Parser{
errorRegex: &ParseErrorRegex{
NoSuchDomain: regexp.MustCompile(`No entries found for the selected source`),
RateLimit: nil, //failed to call rate-limit for .xn--plai
MalformedRequest: regexp.MustCompile(`Invalid request.`),
},
registrarRegex: &RegistrarRegex{
DomainName: regexp.MustCompile(`domain:\s*(.+)`),
NameServers: regexp.MustCompile(`nserver:\s*(.+)`),
DomainStatus: regexp.MustCompile(`state:\s*(.+)`),
RegistrarName: regexp.MustCompile(`registrar:\s*(.+)`),
ReferralURL: regexp.MustCompile(`admin-contact:\s*(.+)`),
CreatedDate: regexp.MustCompile(`created:\s*(.+)`),
ExpirationDate: regexp.MustCompile(`paid-till:\s*(.+)`),
UpdatedDate: regexp.MustCompile(`Last updated on\s*(.+)`),
},
registrantRegex: &RegistrantRegex{
Organization: regexp.MustCompile(`org:\s*(.+)`),
},
}
func init() {
RegisterParser(".xn--plai", xnPlaiParser)
}