MCPcopy Create free account
hub / github.com/Noumena-Network/code / normalizeHeading

Function normalizeHeading

src/cli/up.ts:22–28  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

20}
21
22function normalizeHeading(text: string): string {
23 return text
24 .replace(/[`*_~]/g, ' ')
25 .replace(/[^a-zA-Z0-9]+/g, ' ')
26 .trim()
27 .toLowerCase()
28}
29
30async function fileExists(path: string): Promise<boolean> {
31 try {

Callers 1

extractUpSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected