diff options
| author | rob.scott <[email protected]> | 2015-03-12 10:24:30 +0000 |
|---|---|---|
| committer | rob.scott <[email protected]> | 2015-03-12 10:24:30 +0000 |
| commit | 6db5cdaf206abd31208e2c5c3b79dbf73d144a10 (patch) | |
| tree | a019c89973ccced914db47e4f684fa424b23930a /lib | |
| parent | 75caacff0bacf3cfbe180c58ff980f965ac8a975 (diff) | |
| download | faker-6db5cdaf206abd31208e2c5c3b79dbf73d144a10.tar.xz faker-6db5cdaf206abd31208e2c5c3b79dbf73d144a10.zip | |
Replaces symbols in domain words so it generates output for all locales
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 c0d92ec5..58611267 100644 --- a/lib/internet.js +++ b/lib/internet.js @@ -42,7 +42,7 @@ var internet = { }, domainWord: function () { - return faker.name.firstName().replace(/([^A-Z0-9._%+-])/ig, '').toLowerCase(); + return faker.name.firstName().replace(/([\\~#&*{}/:<>?|\"])/ig, '').toLowerCase(); }, ip: function () { |
