We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 092a195 commit f706b71Copy full SHA for f706b71
1 file changed
index.js
@@ -1,11 +1,11 @@
1
"use strict";
2
3
-var validationRegex = /^[a-z]{1,2}\d[a-z\d]?\s*?\d[a-z]{2}$/i,
+var validationRegex = /^[a-z]{1,2}\d[a-z\d]?\s*\d[a-z]{2}$/i,
4
incodeRegex = /\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][a-z\d]{1,3}\s*\d/i,
9
unitRegex = /[a-z]{2}$/i;
10
11
function isValidPostcode (postcode) {
0 commit comments