MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / restore

Function restore

src/runtime/adapters/markdown.ts:42–47  ·  view source on GitHub ↗
(text: string, placeholders: string[])

Source from the content-addressed store, hash-verified

40}
41
42function restore(text: string, placeholders: string[]): string {
43 return text.replace(
44 new RegExp(`${PLACEHOLDER_START}(\\d+)${PLACEHOLDER_END}`, "g"),
45 (_, index: string) => placeholders[Number(index)] ?? "",
46 );
47}
48
49function formatSlackInline(text: string): string {
50 let formatted = text;

Callers 2

formatSlackMessageFunction · 0.85
formatTelegramMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected