aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSebastian Pettersson <[email protected]>2020-09-06 13:54:53 +0200
committerSebastian Pettersson <[email protected]>2020-09-06 13:54:53 +0200
commit9c65e5dd4902dbdf12088c36c098a9d7958afe09 (patch)
treee060dd8a2198bcc6082ffe86f1010d051bace251 /lib
parent81f1adf754a815b3f6fa10ec8c577572206f3c71 (diff)
downloadfaker-9c65e5dd4902dbdf12088c36c098a9d7958afe09.tar.xz
faker-9c65e5dd4902dbdf12088c36c098a9d7958afe09.zip
fix spelling & formatting mistakes
Diffstat (limited to 'lib')
-rw-r--r--lib/address.js6
-rw-r--r--lib/helpers.js8
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) {