File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/integrations/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,9 @@ export class RewriteFrames implements Integration {
72
72
return frame ;
73
73
}
74
74
// Determine if this is a Windows frame by checking for a Windows-style prefix such as `C:\`
75
- // or the presence of a backslash without a forward slash (which are not allowed on Windows)
76
- const isWindowsFrame = / ^ [ a - z A - Z ] : \\ / . test ( frame . filename ) || / ^ (? ! .* \/ ) .* \\ .* $ / . test ( frame . filename ) ;
75
+ const isWindowsFrame = / ^ [ a - z A - Z ] : \\ / . test ( frame . filename ) ||
76
+ // or the presence of a backslash without a forward slash (which are not allowed on Windows)
77
+ ( frame . filename . includes ( '\\' ) && ! frame . filename . includes ( '/' ) ) ;
77
78
// Check if the frame filename begins with `/`
78
79
const startsWithSlash = / ^ \/ / . test ( frame . filename ) ;
79
80
if ( isWindowsFrame || startsWithSlash ) {
You can’t perform that action at this time.
0 commit comments