Comparing version 0.0.6 to 0.0.7
@@ -377,4 +377,5 @@ | ||
number = Math.abs(number); | ||
var tens = number % 100; | ||
return sign + number + (number > 4 && number < 21 ? 'th' : {1: 'st', 2: 'nd', 3: 'rd'}[number % 10] || 'th'); | ||
return sign + number + (tens > 4 && tens < 21 ? 'th' : {1: 'st', 2: 'nd', 3: 'rd'}[number % 10] || 'th'); | ||
}; | ||
@@ -381,0 +382,0 @@ |
@@ -19,3 +19,3 @@ { | ||
"main": "humanize.js", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"dependencies": {}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
@@ -293,3 +293,4 @@ var should = require('should'); | ||
'-2': '-2nd', | ||
'-3': '-3rd' | ||
'-3': '-3rd', | ||
112: '112th' | ||
}; | ||
@@ -296,0 +297,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
44544
966