MCPcopy Index your code
hub / github.com/anomalyco/opencode / normalizeAccount

Function normalizeAccount

packages/opencode/src/plugin/snowflake-cortex.ts:38–44  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

36let oauthServerPort: number | undefined
37
38function normalizeAccount(input: string) {
39 return input
40 .trim()
41 .replace(/^https?:\/\//, "")
42 .replace(/\.snowflakecomputing\.com\/?$/, "")
43 .replace(/\/+$/, "")
44}
45
46function generateRandomString(length: number) {
47 const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~"

Callers 1

authorizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected