autocapitalize
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,7 @@ | ||
1.0.1 - November, 23 2018 | ||
* 5a6c0c3 Fix: for hyphenated compound words (#1) (Lukas Aichbauer) | ||
* c97a6b3 1.0.0 (aichbauer) | ||
* 23096d5 1.0.0 (aichbauer) | ||
1.0.0 - November, 22 2018 | ||
@@ -2,0 +8,0 @@ |
@@ -31,3 +31,3 @@ "use strict"; | ||
var _returnValue = ''; | ||
value.toLowerCase().split(/([ ])/g).forEach(function (item) { | ||
value.toLowerCase().split(/([ -])/g).forEach(function (item) { | ||
_returnValue += item ? "".concat(item[0].toUpperCase()).concat(item.substring(1)) : ''; | ||
@@ -34,0 +34,0 @@ }); |
{ | ||
"name": "autocapitalize", | ||
"description": "A small string manipulation library to capitalize letters based on rules", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "./lib/index.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
8241