-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathparser_fr.go
More file actions
27 lines (23 loc) · 805 Bytes
/
parser_fr.go
File metadata and controls
27 lines (23 loc) · 805 Bytes
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
package whoisparser
import (
"regexp"
)
var frParser = &Parser{
errorRegex: &ParseErrorRegex{
NoSuchDomain: regexp.MustCompile(`No entries found in the AFNIC Database.`),
RateLimit: nil, //failed to call rate-limit for .fr
MalformedRequest: nil, //MalformedRequest and NoSuchDomain same
},
registrarRegex: &RegistrarRegex{
DomainName: regexp.MustCompile(`domain: *(.+)`),
DomainStatus: regexp.MustCompile(`\nstatus: *(.*)`),
RegistrarName: regexp.MustCompile(`registrar: *(.*)`),
ExpirationDate: regexp.MustCompile(`Expiry Date: *(.*)`),
CreatedDate: regexp.MustCompile(`created: *(.*)`),
UpdatedDate: regexp.MustCompile(`last-update: *(.*)`),
NameServers: regexp.MustCompile(`nserver: *(.*)`),
},
}
func init() {
RegisterParser(".fr", frParser)
}