forked from linkong/planet
first commit
This commit is contained in:
commit
e7033775d8
20657 files changed
+1988940
No files matched your search
+9
@@ -0,0 +1,9 @@
|
||||
var camel2hyphen = function (str) {
|
||||
return str
|
||||
.replace(/[A-Z]/g, function (match) {
|
||||
return '-' + match.toLowerCase();
|
||||
})
|
||||
.toLowerCase();
|
||||
};
|
||||
|
||||
module.exports = camel2hyphen;
|
||||
Reference in new issue
Block a user