Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
fix(url-generation): Fix empty words
Browse files Browse the repository at this point in the history
Close #7
  • Loading branch information
Ben Einaudi authored and arnaudruffin committed Dec 14, 2016
1 parent 578ec3c commit 7bf3687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions url-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ UriGenerator.prototype.generateUrl = function () {
error("url generation not ready: file are not all loaded");
return null;
} else {
return this.adv[Math.floor(Math.random() * this.adv.length) + 1] + '-' +
this.adj[Math.floor(Math.random() * this.adj.length) + 1] + '-' +
this.noun[Math.floor(Math.random() * this.noun.length) + 1];
return this.adv[Math.floor(Math.random() * this.adv.length)] + '-' +
this.adj[Math.floor(Math.random() * this.adj.length)] + '-' +
this.noun[Math.floor(Math.random() * this.noun.length)];
}
};

Expand Down

0 comments on commit 7bf3687

Please sign in to comment.