diff options
| author | Sebastian Pettersson <[email protected]> | 2020-09-06 13:54:53 +0200 |
|---|---|---|
| committer | Sebastian Pettersson <[email protected]> | 2020-09-06 13:54:53 +0200 |
| commit | 9c65e5dd4902dbdf12088c36c098a9d7958afe09 (patch) | |
| tree | e060dd8a2198bcc6082ffe86f1010d051bace251 /lib | |
| parent | 81f1adf754a815b3f6fa10ec8c577572206f3c71 (diff) | |
| download | faker-9c65e5dd4902dbdf12088c36c098a9d7958afe09.tar.xz faker-9c65e5dd4902dbdf12088c36c098a9d7958afe09.zip | |
fix spelling & formatting mistakes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/address.js | 6 | ||||
| -rw-r--r-- | lib/helpers.js | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/address.js b/lib/address.js index 650044fe..38c1e38c 100644 --- a/lib/address.js +++ b/lib/address.js @@ -284,7 +284,7 @@ function Address (faker) { } this.direction.schema = { - "description": "Generates a direction. Use optional useAbbr bool to return abbrevation", + "description": "Generates a direction. Use optional useAbbr bool to return abbreviation", "sampleResults": ["Northwest", "South", "SW", "E"] }; @@ -306,7 +306,7 @@ function Address (faker) { } this.cardinalDirection.schema = { - "description": "Generates a cardinal direction. Use optional useAbbr boolean to return abbrevation", + "description": "Generates a cardinal direction. Use optional useAbbr boolean to return abbreviation", "sampleResults": ["North", "South", "E", "W"] }; @@ -328,7 +328,7 @@ function Address (faker) { } this.ordinalDirection.schema = { - "description": "Generates an ordinal direction. Use optional useAbbr boolean to return abbrevation", + "description": "Generates an ordinal direction. Use optional useAbbr boolean to return abbreviation", "sampleResults": ["Northwest", "Southeast", "SW", "NE"] }; diff --git a/lib/helpers.js b/lib/helpers.js index 4100c766..673be420 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -7,7 +7,7 @@ var Helpers = function (faker) { var self = this; /** - * backword-compatibility + * backward-compatibility * * @method faker.helpers.randomize * @param {array} array @@ -125,7 +125,7 @@ var Helpers = function (faker) { * @param {string} string * @param {number} num */ - self.repeatString = function(string,num) { + self.repeatString = function(string, num) { if(typeof num ==="undefined") { num = 0; } @@ -137,7 +137,7 @@ var Helpers = function (faker) { }; /** - * parse string paterns in a similar way to RegExp + * parse string patterns in a similar way to RegExp * * e.g. "#{3}test[1-5]" -> "###test4" * @@ -177,7 +177,7 @@ var Helpers = function (faker) { token = string.match(RANGE_REG); while(token !== null){ - min = parseInt(token[1]); // This time we are not capturing the char befor `[]` + min = parseInt(token[1]); // This time we are not capturing the char before `[]` max = parseInt(token[2]); // switch min and max if(min>max) { |
