Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React instrumentation snippet pastes wrong regex #10468

Open
chargome opened this issue Jun 24, 2024 · 0 comments
Open

React instrumentation snippet pastes wrong regex #10468

chargome opened this issue Jun 24, 2024 · 0 comments
Assignees
Labels
Bug Type: Platform Issues about the platform & functionality of our docs

Comments

@chargome
Copy link
Member

chargome commented Jun 24, 2024

Steps to Reproduce

Clicking on the copy button of the intrumentation.js snippet in the react sdk docs and pasting it adds newlines to the pasted regex.

https://sentry-docs-git-cg-client-return-type.sentry.dev/platforms/javascript/guides/react/

Expected Result

// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
tracePropagationTargets: [/^\//, /^https:\/\/yourserver\.io\/api/],

Actual Result

// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
  tracePropagationTargets: [/
^
\//, /
^
https:\/\/yourserver\.io\/api/],

Additional Info

No response

@chargome chargome added Bug Type: Platform Issues about the platform & functionality of our docs labels Jun 24, 2024
@chargome chargome self-assigned this Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Platform Issues about the platform & functionality of our docs
Projects
Status: Backlog
Development

No branches or pull requests

1 participant