Add markdown format support (#25)

Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
This commit is contained in:
dougpagani
2020-11-30 12:51:34 -05:00
committed by GitHub
parent d1b07d9ed7
commit 2095e6ffe3
941 changed files with 37481 additions and 15 deletions

13
node_modules/decamelize/index.js generated vendored Normal file
View File

@ -0,0 +1,13 @@
'use strict';
module.exports = function (str, sep) {
if (typeof str !== 'string') {
throw new TypeError('Expected a string');
}
sep = typeof sep === 'undefined' ? '_' : sep;
return str
.replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2')
.replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2')
.toLowerCase();
};