diff options
| author | FotoVerite <[email protected]> | 2013-06-12 01:31:21 -0400 |
|---|---|---|
| committer | FotoVerite <[email protected]> | 2013-06-12 01:31:21 -0400 |
| commit | d3d5ac2042851bd17fe29a7345ebb2f084c4b691 (patch) | |
| tree | 0d441e086026afb798313134fe2d30f94abaf0e3 /lib | |
| parent | 97ef5dd3e60a9fcb1c44b471ab0ea0e4eb529dc2 (diff) | |
| parent | cce5d927e7e847c780e828972c92113d4cb7199f (diff) | |
| download | faker-d3d5ac2042851bd17fe29a7345ebb2f084c4b691.tar.xz faker-d3d5ac2042851bd17fe29a7345ebb2f084c4b691.zip | |
[util] merged in chrisocast changes, updated build and version.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lorem.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/lorem.js b/lib/lorem.js index baa18ebc..209d2ced 100644 --- a/lib/lorem.js +++ b/lib/lorem.js @@ -8,11 +8,12 @@ var lorem = { return Helpers.shuffle(definitions.lorem).slice(0, num); }, - sentence: function (wordCount) { + sentence: function (wordCount, range) { if (typeof wordCount == 'undefined') { wordCount = 3; } + if (typeof range == 'undefined') { range = 7; } // strange issue with the node_min_test failing for captialize, please fix and add this back - //return this.words(wordCount + Helpers.randomNumber(7)).join(' ').capitalize(); + //return this.words(wordCount + Helpers.randomNumber(range)).join(' ').capitalize(); return lorem.words(wordCount + Faker.random.number(7)).join(' '); }, |
