change-case
Advanced tools
Comparing version 1.0.2 to 1.0.4
@@ -32,4 +32,4 @@ /** | ||
return string | ||
.replace(/([a-z0-9])([A-Z])/, '$1 $2') | ||
.replace(/([^a-zA-Z0-9]*)([a-zA-Z0-9]+)/g, function (_, $0, $1) { | ||
.replace(/([a-z0-9])([A-Z])/g, '$1 $2') | ||
.replace(/([^a-zA-Z0-9]*)([a-zA-Z0-9]*)/g, function (_, $0, $1) { | ||
var prefix = $0; | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "change-case", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "Convert strings between camelCase, PascalCase, Title Case, snake_case, etc", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -46,2 +46,4 @@ /* global describe, it */ | ||
assert.equal(changeCase.camelCase('-webkit-transform'), 'webkitTransform'); | ||
assert.equal(changeCase.camelCase('fooBarBaz'), 'fooBarBaz'); | ||
assert.equal(changeCase.camelCase('some (things)'), 'someThings'); | ||
}); | ||
@@ -48,0 +50,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
15132
299