xijs
xijs copied to clipboard
fix: 优化 hyphenate 函数
对 hyphenate
做了点优化, 针对连续大写专有名词
// 优化前:
console.log(hyphenate('getDataFromDB', '_')) // output: get_data_from_d_b
// 优化后:
console.log(hyphenate('getDataFromDB', '_')) // output: get_data_from_db