aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarak <[email protected]>2020-09-06 08:59:42 -0500
committerGitHub <[email protected]>2020-09-06 08:59:42 -0500
commitcb851b7656309e99ebbb61174f68d5e93e2ee147 (patch)
treeeda18fbe38c7e101c7dd8d84848c9f9e800a94b7 /lib
parent46ad73d378697e06e03d73e38ed24ee9dcc97e8b (diff)
parent9c65e5dd4902dbdf12088c36c098a9d7958afe09 (diff)
downloadfaker-cb851b7656309e99ebbb61174f68d5e93e2ee147.tar.xz
faker-cb851b7656309e99ebbb61174f68d5e93e2ee147.zip
Merge pull request #992 from TastefulElk/chore/cleanup
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) {