Skip to content

Commit 5c0d2f0

Browse files
committed
Address copilot review
1 parent f595c94 commit 5c0d2f0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react/src/reactrouter-compat-utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ export function pathEndsWithWildcard(path: string): boolean {
3838
return path.endsWith('*');
3939
}
4040

41-
/** Checks if transaction name has wildcard (/* or * or ends with *). */
41+
/** Checks if transaction name has wildcard (/* or ends with *). */
4242
export function transactionNameHasWildcard(name: string): boolean {
43-
return name.includes('/*') || name === '*' || name.endsWith('*');
43+
return name.includes('/*') || name.endsWith('*');
4444
}
4545

4646
/**

packages/react/test/reactrouter-compat-utils/instrumentation.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ describe('tryUpdateSpanNameBeforeEnd - source upgrade logic', () => {
480480
);
481481

482482
// Should not update because span is already named
483-
// The early return in tryUpdateSpanNameBeforeEnd (line 815) protects against downgrades
483+
// The early return in tryUpdateSpanNameBeforeEnd protects against downgrades
484484
// This test verifies that route->url downgrades are blocked
485485
expect(mockUpdateName).not.toHaveBeenCalled();
486486
expect(mockSetAttribute).not.toHaveBeenCalled();

0 commit comments

Comments
 (0)