decamelize
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,3 +6,3 @@ 'use strict'; | ||
} | ||
sep = sep || '_'; | ||
sep = typeof sep === 'undefined' ? '_' : sep; | ||
return str.replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2') | ||
@@ -9,0 +9,0 @@ .replace(new RegExp('(' + sep + '[A-Z])([A-Z])', 'g'), '$1' + sep + '$2') |
{ | ||
"name": "decamelize", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Convert a camelized string into a lowercased one with a custom separator: unicornRainbow → unicorn_rainbow", | ||
@@ -5,0 +5,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
2946