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

Method getSearchParam

src/utils/safe-url.ts:136–138  ·  view source on GitHub ↗

* Helper method to safely get a parameter from query string * * @param name - The parameter name to retrieve * @returns The parameter value or null if not found

(name: string)

Source from the content-addressed store, hash-verified

134 * @returns The parameter value or null if not found
135 */
136 getSearchParam(name: string): string | null {
137 return this.searchParams.has(name) ? this.searchParams.get(name) as string : null;
138 }
139
140 /**
141 * Helper method to iterate over all parameters

Callers 1

processSourceConfigsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected