Skip to content

Commit 630914e

Browse files
Potential fix for code scanning alert no. 424: Missing regular expression anchor
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 2fba037 commit 630914e

File tree

1 file changed

+1
-1
lines changed
  • dev-packages/browser-integration-tests/suites/span-first/web-vitals/web-vitals-ttfb

1 file changed

+1
-1
lines changed

dev-packages/browser-integration-tests/suites/span-first/web-vitals/web-vitals-ttfb/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ sentryTest('captures TTFB web vital', async ({ getLocalTestUrl, page }) => {
2727
}
2828

2929
expect(pageloadSpan!.attributes?.['ui.web_vital.ttfb.requestTime']).toEqual({
30-
type: expect.stringMatching(/^integer|double$/),
30+
type: expect.stringMatching(/^(integer|double)$/),
3131
value: expect.any(Number),
3232
});
3333
});

0 commit comments

Comments
 (0)