Comparing version 1.1.6 to 1.2.0
{ | ||
"name": "pluralize", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"description": "Pluralize and singularize any word", | ||
@@ -5,0 +5,0 @@ "main": "pluralize.js", |
@@ -89,2 +89,3 @@ /* global define */ | ||
* | ||
* @param {String} token | ||
* @param {String} word | ||
@@ -94,5 +95,5 @@ * @param {Array} collection | ||
*/ | ||
function sanitizeWord (word, collection) { | ||
function sanitizeWord (token, word, collection) { | ||
// Empty string or doesn't need fixing. | ||
if (!word.length || uncountables.hasOwnProperty(word)) { | ||
if (!token.length || uncountables.hasOwnProperty(token)) { | ||
return word; | ||
@@ -148,3 +149,3 @@ } | ||
// Run all the rules against the word. | ||
return sanitizeWord(word, rules); | ||
return sanitizeWord(token, word, rules); | ||
}; | ||
@@ -151,0 +152,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15051
399