MCPcopy Index your code
hub / github.com/keepfool/vue-tutorials / hyphenate

Function hyphenate

06.Router/basic/js/vue.js:187–189  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

185 var hyphenateRE = /([a-z\d])([A-Z])/g;
186
187 function hyphenate(str) {
188 return str.replace(hyphenateRE, '$1-$2').toLowerCase();
189 }
190
191 /**
192 * Converts hyphen/underscore/slash delimitered names into

Callers 5

vue.jsFile · 0.70
guardComponentsFunction · 0.70
prefixFunction · 0.70
compilePropsFunction · 0.70
makePropsLinkFnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected