MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / humanizeCommandName

Function humanizeCommandName

src/cm/commandRegistry.js:1289–1294  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1287}
1288
1289function humanizeCommandName(name) {
1290 return name
1291 .replace(/([a-z0-9])([A-Z])/g, "$1 $2")
1292 .replace(/_/g, " ")
1293 .replace(/^./, (char) => char.toUpperCase());
1294}
1295
1296function copyCommand(view) {
1297 const resolvedView = resolveView(view);

Callers 2

normalizeExternalCommandFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected