Skip to content

Commit

Permalink
Merge pull request #12 from timacdonald/zip_codes
Browse files Browse the repository at this point in the history
add australian state zip codes
  • Loading branch information
dusterio authored Mar 31, 2020
2 parents 81df3cd + 4fa74ae commit 84a8f38
Showing 1 changed file with 38 additions and 9 deletions.
47 changes: 38 additions & 9 deletions resources/states/AU.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
},
"long": {
"default": "Western Australia"
}
},
"postcodes": [
"/^6\\d{3}$/"
]
},
{
"parent": "AU",
Expand All @@ -19,7 +22,10 @@
},
"long": {
"default": "South Australia"
}
},
"postcodes": [
"/^5\\d{3}$/"
]
},
{
"parent": "AU",
Expand All @@ -30,7 +36,10 @@
},
"long": {
"default": "Northern Territory"
}
},
"postcodes": [
"/^0{0,1}(8|9)\\d{2}$/"
]
},
{
"parent": "AU",
Expand All @@ -41,7 +50,10 @@
},
"long": {
"default": "Victoria"
}
},
"postcodes": [
"/^(3|8)\\d{3}$/"
]
},
{
"parent": "AU",
Expand All @@ -52,7 +64,10 @@
},
"long": {
"default": "Tasmania"
}
},
"postcodes": [
"/^7\\d{3}$/"
]
},
{
"parent": "AU",
Expand All @@ -63,7 +78,10 @@
},
"long": {
"default": "Queensland"
}
},
"postcodes": [
"/^(4|9)\\d{3}$/"
]
},
{
"parent": "AU",
Expand All @@ -74,7 +92,13 @@
},
"long": {
"default": "New South Wales"
}
},
"postcodes": [
"/^1\\d{3}$/",
"/^2[0-5]\\d{2}$/",
"/^(2619)|(2[6-8]\\d{2})$/",
"/^(292[1-9])|(29[3-9]\\d{1})$/"
]
},
{
"parent": "AU",
Expand All @@ -85,6 +109,11 @@
},
"long": {
"default": "Australian Capital Territory"
}
},
"postcodes": [
"/^0{0,1}2\\d{2}$/",
"/^(260\\d)|(261[0-8])$/",
"/^(29[0-1]\\d)|(2920)$/"
]
}
]
]

0 comments on commit 84a8f38

Please sign in to comment.