MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / extractOrgIdFromDsnHost

Function extractOrgIdFromDsnHost

packages/core/src/utils/dsn.ts:127–131  ·  view source on GitHub ↗
(host: string)

Source from the content-addressed store, hash-verified

125 * @returns The org ID if found, undefined otherwise
126 */
127export function extractOrgIdFromDsnHost(host: string): string | undefined {
128 const match = host.match(ORG_ID_REGEX);
129
130 return match?.[1];
131}
132
133/**
134 * Returns the organization ID of the client.

Callers 2

dsn.test.tsFile · 0.90
extractOrgIdFromClientFunction · 0.85

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected