-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheudxcc.go
More file actions
22 lines (17 loc) · 726 Bytes
/
Copy patheudxcc.go
File metadata and controls
22 lines (17 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
This file contains the implementation of the specific things for contests announced by the EUDXCC (https://eudxcc.altervista.org/).
*/
package conval
import (
"regexp"
)
func init() {
commonPropertyValidators[EURegionProperty] = RegexpValidator(validEURegion, "EU region")
commonPropertyGetters[EURegionProperty] = getTheirExchangeProperty(EURegionProperty)
}
const (
EURegionProperty Property = "eu_region"
)
var (
validEURegion = regexp.MustCompile(`AT0[1-9]|BE[01][0-9]|BG0[1-6]|CZ[01][0-9]|CY0[1-5]|DK0[1-6]|EE0[1-5]|FI[01][0-9]|FR[0-2][0-9]|DE[01][0-9]|GR[01][0-9]|HU0[1-7]|IE0[1-4]|IT[0-2][0-9]|LV0[1-6]|LT0[1-5]|LX01|MT0[1-5]|NL[01][0-9]|PL[01][0-9]|RO0[1-8]|SK0[1-8]|SI0[1-6]|ES[01][1-9]|SE[0-2][1-9]`)
)