Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
14
export
function
normalizeSourceId(id: string): string {
15
return
id.replace(/[^a-zA-Z0-9]/g,
'_'
);
16
}
Callers
3
getExecuteSqlMetadata
Function · 0.85
getSearchObjectsMetadata
Function · 0.85
normalize-id.test.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected