Skip to content

Commit dab6ca0

Browse files
committed
Incorporate new outcode regex into sectorRegex
1 parent 447e0c2 commit dab6ca0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var validationRegex = /^[a-z]{1,2}\d[a-z\d]?\s*\d[a-z]{2}$/i,
55
validOutcodeRegex = /^[a-z]{1,2}\d[a-z\d]?$/i,
66
areaRegex = /^[a-z]{1,2}/i,
77
districtSplitRegex = /^([a-z]{1,2}\d)([a-z])$/i,
8-
sectorRegex = /^[a-z][a-z\d]{1,3}\s*\d/i,
8+
sectorRegex = /^[a-z]{1,2}\d[a-z\d]?\s*\d/i,
99
unitRegex = /[a-z]{2}$/i;
1010

1111
function isValidPostcode (postcode) {

0 commit comments

Comments
 (0)