Comparing version 1.3.0 to 1.4.1
@@ -8,3 +8,6 @@ 'use strict'; | ||
var dashify = function dashify(str) { | ||
var dashify = function dashify() { | ||
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | ||
if (typeof str !== 'string') return str; | ||
return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(); | ||
@@ -11,0 +14,0 @@ }; |
{ | ||
"name": "b3m", | ||
"version": "1.3.0", | ||
"version": "1.4.1", | ||
"main": "build/index.js", | ||
@@ -11,3 +11,10 @@ "repository": { | ||
"description": "Easy af BEM formatter which uses the two-dashes-style", | ||
"keywords": ["bem", "classname", "classname formatter", "two-dashes-style", "b3m", "BEM formatter"], | ||
"keywords": [ | ||
"bem", | ||
"classname", | ||
"classname formatter", | ||
"two-dashes-style", | ||
"b3m", | ||
"BEM formatter" | ||
], | ||
"homepage": "https://github.com/entwicklerstube/b3m", | ||
@@ -14,0 +21,0 @@ "license": "MIT", |
5483
44