Skip to content

Commit 6bcd315

Browse files
authored
Merge pull request #102 from robmathers/master
Format CA postal codes properly
2 parents 099afaa + 0452bfb commit 6bcd315

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

api/.nextRelease/data/CA/inject.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ module.exports = (inc, contents) => {
88
name: '',
99
value: null
1010
});
11+
include(inc, 'location', () => {
12+
var letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
13+
14+
var postcode = letters[range(0,25)] + random(3, 1) + letters[range(0,25)] + ' ' + random(3, 1) + letters[range(0,25)] + random(3, 1);
15+
16+
contents.location.postcode = postcodes;
17+
});
18+
1119
include(inc, 'picture', pic);
12-
};
20+
};

0 commit comments

Comments
 (0)