Comparing version 0.1.4 to 0.1.5
@@ -1,10 +0,1 @@ | ||
#v.0.1.4 | ||
- Fixes an issue with multi uppercase letters and number usage. | ||
#v0.1.3 | ||
- Remove needless engines specificity | ||
# v0.1.2 | ||
@@ -11,0 +2,0 @@ |
@@ -105,3 +105,3 @@ 'use strict'; | ||
camelCase: function camelCase(str) { | ||
return str.replace(/([aA-zZ])_(\w)/g, function (g) { | ||
return str.replace(/([a-z])_(\w)/g, function (g) { | ||
return g[0] + g[2].toUpperCase(); | ||
@@ -117,3 +117,3 @@ }); | ||
underscore: function underscore(str) { | ||
return str.replace(/([a-z])([A-Z0-9]+)/g, function (g) { | ||
return str.replace(/([a-z])([A-Z]+)/g, function (g) { | ||
return g.split('').map(function (k) { | ||
@@ -120,0 +120,0 @@ return k.toLowerCase(); |
{ | ||
"name": "camelscore", | ||
"description": "camelCase and under_score utilities for objects.", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"author": "Trevor Livingston <tlivings@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
6637
5