diff options
| author | Andrii Kostenko <[email protected]> | 2021-06-05 19:39:06 +0300 |
|---|---|---|
| committer | Andrii Kostenko <[email protected]> | 2021-06-05 19:39:06 +0300 |
| commit | 3aac69e8ab0d0337580de688a8e0134a20fdcc08 (patch) | |
| tree | 6c646d299406e202176b25cd590f3de43d3a2bba /lib | |
| parent | 9c917bae5adf7046fc08b2ecac7702711557e4b9 (diff) | |
| download | faker-3aac69e8ab0d0337580de688a8e0134a20fdcc08.tar.xz faker-3aac69e8ab0d0337580de688a8e0134a20fdcc08.zip | |
change domainWord generation algorithm to <adjective>-<noun>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/internet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internet.js b/lib/internet.js index 91eedc1d..7ade42d8 100644 --- a/lib/internet.js +++ b/lib/internet.js @@ -197,7 +197,7 @@ var Internet = function (faker) { * @method faker.internet.domainWord */ self.domainWord = function () { - return faker.name.firstName().replace(/([\\~#&*{}/:<>?|\"'])/ig, '').toLowerCase(); + return (faker.word.adjective() + '-' + faker.word.noun()).replace(/([\\~#&*{}/:<>?|\"'])/ig, '').toLowerCase(); }; self.domainWord.schema = { |
