MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / removeSentryQueryFromPath

Function removeSentryQueryFromPath

packages/nuxt/src/vite/utils.ts:93–97  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

91 * Only exported for testing.
92 */
93export function removeSentryQueryFromPath(url: string): string {
94 // oxlint-disable-next-line sdk/no-regexp-constructor
95 const regex = new RegExp(`\\${SENTRY_WRAPPED_ENTRY}.*?\\${QUERY_END_INDICATOR}`);
96 return url.replace(regex, '');
97}
98
99/**
100 * Extracts and sanitizes function re-export and function wrap query parameters from a query string.

Callers 2

utils.test.tsFile · 0.90
loadFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected