Skip to content

Commit 16ac055

Browse files
committed
Calling random mode 5 for the first digit of the area code and the first digit of the prefix to ensure they are not 0 or 1
1 parent 77e8130 commit 16ac055

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module.exports = (inc, contents) => {
44
const pic = contents.picture;
55
delete contents.picture;
66

7-
include(inc, contents, 'phone', random(3, 3) + '-' + random(3, 3) + '-' + random(3, 4));
8-
include(inc, contents, 'cell', random(3, 3) + '-' + random(3, 3) + '-' + random(3, 4));
7+
include(inc, contents, 'phone', random(4, 1) + random(3, 2) + ' ' + random(4, 1) + random(3, 2) + '-' + random(3, 4));
8+
include(inc, contents, 'cell', random(4, 1) + random(3, 2) + ' ' + random(4, 1) + random(3, 2) + '-' + random(3, 4));
99
include(inc, contents, 'id', {
1010
name: '',
1111
value: null

api/.nextRelease/data/US/inject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module.exports = (inc, contents) => {
44
const pic = contents.picture;
55
delete contents.picture;
66

7-
include(inc, contents, 'phone', '(' + random(3, 3) + ')-' + random(3, 3) + '-' + random(3, 4));
8-
include(inc, contents, 'cell', '(' + random(3, 3) + ')-' + random(3, 3) + '-' + random(3, 4));
7+
include(inc, contents, 'phone', '(' + random(4, 1) + random(3, 2) + ') ' + random(4, 1) + random(3, 2) + '-' + random(3, 4));
8+
include(inc, contents, 'cell', '(' + random(4, 1) + random(3, 2) + ') ' + random(4, 1) + random(3, 2) + '-' + random(3, 4));
99
include(inc, contents, 'id', {
1010
name: 'SSN',
1111
value: random(3, 3) + '-' + random(3, 2) + '-' + random(3, 4)

0 commit comments

Comments
 (0)