MCPcopy Create free account
hub / github.com/bytebase/dbhub / normalizeSourceId

Function normalizeSourceId

src/utils/normalize-id.ts:14–16  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

12 * @returns The normalized ID safe for use in tool names
13 */
14export function normalizeSourceId(id: string): string {
15 return id.replace(/[^a-zA-Z0-9]/g, '_');
16}

Callers 3

getExecuteSqlMetadataFunction · 0.85
getSearchObjectsMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected