diff options
| author | Iaroslav Popov <[email protected]> | 2017-08-10 15:18:05 +0200 |
|---|---|---|
| committer | Iaroslav Popov <[email protected]> | 2017-08-10 15:18:05 +0200 |
| commit | 496c81d2422ab5fd20dcb52dfc9dd22bdb773613 (patch) | |
| tree | ee2ad81231bbd6ea2f730ee02113ebf04e41b7d2 /lib | |
| parent | 6cdb93efcbcaf222ac061cee5532374f72ea073e (diff) | |
| download | faker-496c81d2422ab5fd20dcb52dfc9dd22bdb773613.tar.xz faker-496c81d2422ab5fd20dcb52dfc9dd22bdb773613.zip | |
add alphanumeric symbol * to helpers.replaceSymbols
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/helpers.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/helpers.js b/lib/helpers.js index 635c4ecc..19a29665 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -69,6 +69,8 @@ var Helpers = function (faker) { str += faker.random.number(9); } else if (string.charAt(i) == "?") { str += faker.random.arrayElement(alpha); + } else if (string.charAt(i) == "*") { + str += faker.random.boolean() ? faker.random.arrayElement(alpha) : faker.random.number(9); } else { str += string.charAt(i); } |
