We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 447e0c2 commit dab6ca0Copy full SHA for dab6ca0
1 file changed
index.js
@@ -5,7 +5,7 @@ var validationRegex = /^[a-z]{1,2}\d[a-z\d]?\s*\d[a-z]{2}$/i,
5
validOutcodeRegex = /^[a-z]{1,2}\d[a-z\d]?$/i,
6
areaRegex = /^[a-z]{1,2}/i,
7
districtSplitRegex = /^([a-z]{1,2}\d)([a-z])$/i,
8
- sectorRegex = /^[a-z][a-z\d]{1,3}\s*\d/i,
+ sectorRegex = /^[a-z]{1,2}\d[a-z\d]?\s*\d/i,
9
unitRegex = /[a-z]{2}$/i;
10
11
function isValidPostcode (postcode) {
0 commit comments