aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFotoVerite <[email protected]>2013-06-12 01:31:21 -0400
committerFotoVerite <[email protected]>2013-06-12 01:31:21 -0400
commitd3d5ac2042851bd17fe29a7345ebb2f084c4b691 (patch)
tree0d441e086026afb798313134fe2d30f94abaf0e3 /lib
parent97ef5dd3e60a9fcb1c44b471ab0ea0e4eb529dc2 (diff)
parentcce5d927e7e847c780e828972c92113d4cb7199f (diff)
downloadfaker-d3d5ac2042851bd17fe29a7345ebb2f084c4b691.tar.xz
faker-d3d5ac2042851bd17fe29a7345ebb2f084c4b691.zip
[util] merged in chrisocast changes, updated build and version.
Diffstat (limited to 'lib')
-rw-r--r--lib/lorem.js5
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(' ');
},