MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / replace

Method replace

src/components/type-writer/index.ts:635–637  ·  view source on GitHub ↗
(text: string, index: number = 1)

Source from the content-addressed store, hash-verified

633 }
634
635 const replace = (text: string, index: number = 1): string => text
636 .slice(text.indexOf('-') + index)
637 .replace(/[-](\w)/g, m => m[1].toUpperCase());
638
639 const voidElements = ['br', 'hr', 'img'];
640 const voidAttributeNames = element.localName && element.getAttributeNames();

Callers 14

applyMethod · 0.80
revertMethod · 0.80
constructorMethod · 0.80
revertMethod · 0.80
stripActionMarkersMethod · 0.80
_parseOptionsMethod · 0.80
resizeMethod · 0.80
willMountMethod · 0.80
interpolateMethod · 0.80
renderMethod · 0.80
willMountMethod · 0.80
loadFromSlotFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected