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 /examples | |
| 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 'examples')
| -rw-r--r-- | examples/js/Faker.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/js/Faker.js b/examples/js/Faker.js index 36abae30..c3b21001 100644 --- a/examples/js/Faker.js +++ b/examples/js/Faker.js @@ -17,7 +17,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -/*************** AUTOGENERATED @ 1371014758626 *************** +/*************** AUTOGENERATED @ 1371014966634 *************** WARNING: THIS FILE WAS AUTOGENERATED BY THE FAKER BUILD SCRIPT MODIFYING THIS FILE IS FINE, BUT YOU REALLY SHOULD BE MODIFYING THE LIBRARY DIRECTLY AND REGENERATING THIS FILE USING BUILD.js!!!! @@ -239,11 +239,12 @@ Faker.Lorem.words = function (num) { return Helpers.shuffle(definitions.lorem).slice(0, num); }; -Faker.Lorem.sentence = function (wordCount) { +Faker.Lorem.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(' '); }; |
