MCPcopy
hub / github.com/vuejs/core / classify

Function classify

packages/runtime-core/src/component.ts:1214–1215  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

1212
1213const classifyRE = /(?:^|[-_])\w/g
1214const classify = (str: string): string =>
1215 str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '')
1216
1217export function getComponentName(
1218 Component: ConcreteComponent,

Callers 1

formatComponentNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected