(url: string)
| 91 | * Only exported for testing. |
| 92 | */ |
| 93 | export 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. |
no test coverage detected