Skip to content

Commit 85042a6

Browse files
committed
"fix" authority regex again
1 parent 11bf51a commit 85042a6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/sveltekit/src/client/load.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ function instrumentSvelteKitFetch(originalFetch: SvelteKitFetch): SvelteKitFetch
179179
const patchedFetchArgs = [input, patchedInit];
180180

181181
if (createSpan) {
182-
U;
183182
fetchPromise = trace(
184183
{
185184
name: `${requestData.method} ${requestData.url}`, // this will become the description of the span

packages/utils/src/url.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ export function getSanitizedUrlString(url: PartialURL): string {
6868
(host &&
6969
host
7070
// Always filter out authority
71-
// Regex partially taken from: https://stackoverflow.com/a/6165138
72-
.replace(/(?:([^@]*)@)/, '[filtered]:[filtered]@')
71+
.replace(/^.*@/, '[filtered]:[filtered]@')
7372
// Don't show standard :80 (http) and :443 (https) ports to reduce the noise
7473
.replace(':80', '')
7574
.replace(':443', '')) ||

0 commit comments

Comments
 (0)