File tree Expand file tree Collapse file tree
dev-packages/bundler-plugin-integration-tests/fixtures Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,10 +81,10 @@ export function readAllFiles(
8181 . replace ( / " d u r a t i o n " : [ \d . ] + / g, '"duration":DURATION' )
8282 . replace ( / " s t a r t _ t i m e s t a m p " : [ \d . ] + / g, '"start_timestamp":START_TIMESTAMP' )
8383 . replace ( / " t i m e s t a m p " : [ \d . ] + / g, '"timestamp":TIMESTAMP' )
84- . replace ( / " r e l e a s e " : " [ \d . ] + " / g, '"release":"PLUGIN_VERSION"' )
84+ . replace ( / " r e l e a s e " : " [ \d . ] + (?: - [ \w . ] + ) ? " / g, '"release":"PLUGIN_VERSION"' )
8585 // Normalize the Sentry SDK version (from the bundled-out, now-external `@sentry/core`).
8686 // It tracks the live monorepo version and would otherwise rot this snapshot on every release.
87- . replace ( / " v e r s i o n " : " [ \d . ] + " / g, '"version":"SDK_VERSION"' )
87+ . replace ( / " v e r s i o n " : " [ \d . ] + (?: - [ \w . ] + ) ? " / g, '"version":"SDK_VERSION"' )
8888 . replace ( / " s a m p l e _ r a n d " : " \d .? \d * " / g, '"sample_rand":"SAMPLE_RAND"' ) ;
8989 } else {
9090 // Normalize Windows line endings for cross-platform snapshots
You can’t perform that action at this time.
0 commit comments