inflection
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,7 @@ | ||
## 1.2.1 / 2012-06-22 | ||
- [bug fix] Singularize `address` produces `addres` | ||
## 1.2.0 / 2012-04-10 | ||
@@ -2,0 +8,0 @@ |
@@ -45,2 +45,3 @@ /*! | ||
[ new RegExp( '(quiz)$', 'gi' ), '$1zes' ], | ||
// do not replace if its already a plural word | ||
@@ -106,2 +107,3 @@ [ new RegExp( '(m)en$', 'gi' )], | ||
[ new RegExp( '(quiz)zes$', 'gi' ), '$1' ], | ||
[ new RegExp( 'ss$', 'gi' ), 'ss' ], | ||
[ new RegExp( 's$', 'gi' ), '' ] | ||
@@ -364,4 +366,3 @@ ]; | ||
return str.substring( 0, 1 ). | ||
toUpperCase() + str.substring( 1 ); | ||
return str.substring( 0, 1 ).toUpperCase() + str.substring( 1 ); | ||
}, | ||
@@ -560,5 +561,3 @@ | ||
if( typeof exports === 'undefined' ){ | ||
root.call( inflector ); | ||
}else{ | ||
if( typeof exports === 'undefined' ) return root.call( inflector ); | ||
@@ -568,5 +567,5 @@ /** | ||
*/ | ||
inflector.version = JSON.parse( | ||
require( 'fs' ).readFileSync( __dirname + '/../package.json', 'utf8' ) | ||
).version; | ||
inflector.version = JSON.parse( | ||
require( 'fs' ).readFileSync( __dirname + '/../package.json', 'utf8' ) | ||
).version; | ||
@@ -576,4 +575,3 @@ /** | ||
*/ | ||
module.exports = inflector; | ||
} | ||
module.exports = inflector; | ||
})( this ); |
{ | ||
"name" : "inflection", | ||
"version" : "1.2.0", | ||
"version" : "1.2.1", | ||
"description": "A port of inflection-js to node.js module", | ||
@@ -11,2 +11,7 @@ "keywords" : [ | ||
"author" : "dreamerslab <ben@dreamerslab.com>", | ||
"contributors": [ | ||
{ "name": "Ryan Schuft", "email": "ryan.schuft@gmail.com" }, | ||
{ "name": "Ben Lin", "email": "ben@dreamerslab.com" }, | ||
{ "name": "Lance Pollard", "email": "lancejpollard@gmail.com" } | ||
], | ||
"dependencies" : {}, | ||
@@ -13,0 +18,0 @@ "devDependencies": { |
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
30291
487