@@ -55,7 +55,7 @@ function createFrame(filename: string, func: string, lineno?: number, colno?: nu
55
55
56
56
// Chromium based browsers: Chrome, Brave, new Opera, new Edge
57
57
const chromeRegex =
58
- / ^ \s * a t (?: ( .* \) .* ?| .* ?) ? \( (?: a d d r e s s a t ) ? ) ? (?: a s y n c ) ? ( (?: f i l e | h t t p s ? | b l o b | c h r o m e - e x t e n s i o n | a d d r e s s | n a t i v e | e v a l | w e b p a c k | < a n o n y m o u s > | [ - a - z ] + : | .* b u n d l e | \/ ) ? .* ?) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \) ? \s * $ / i;
58
+ / ^ \s * a t (?: ( .* \) .* ?| .* ?) ? \( (?: a d d r e s s a t ) ? ) ? (?: a s y n c ) ? ( (?: < a n o n y m o u s > | [ - a - z ] + : | .* b u n d l e | \/ ) ? .* ?) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \) ? \s * $ / i;
59
59
const chromeEvalRegex = / \( ( \S * ) (?: : ( \d + ) ) (?: : ( \d + ) ) \) / ;
60
60
61
61
const chrome : StackLineParserFn = line => {
@@ -91,7 +91,7 @@ export const chromeStackLineParser: StackLineParser = [CHROME_PRIORITY, chrome];
91
91
// generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js
92
92
// We need this specific case for now because we want no other regex to match.
93
93
const geckoREgex =
94
- / ^ \s * ( .* ?) (?: \( ( .* ?) \) ) ? (?: ^ | @ ) ? ( (?: f i l e | h t t p s ? | b l o b | c h r o m e | w e b p a c k | r e s o u r c e | m o z - e x t e n s i o n | s a f a r i - e x t e n s i o n | s a f a r i - w e b - e x t e n s i o n | c a p a c i t o r ) ? : \/ .* ?| \[ n a t i v e c o d e \] | [ ^ @ ] * (?: b u n d l e | \d + \. j s ) | \/ [ \w \- . / = ] + ) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \s * $ / i;
94
+ / ^ \s * ( .* ?) (?: \( ( .* ?) \) ) ? (?: ^ | @ ) ? ( (?: [ - a - z ] + ) ? : \/ .* ?| \[ n a t i v e c o d e \] | [ ^ @ ] * (?: b u n d l e | \d + \. j s ) | \/ [ \w \- . / = ] + ) (?: : ( \d + ) ) ? (?: : ( \d + ) ) ? \s * $ / i;
95
95
const geckoEvalRegex = / ( \S + ) l i n e ( \d + ) (?: > e v a l l i n e \d + ) * > e v a l / i;
96
96
97
97
const gecko : StackLineParserFn = line => {
@@ -123,8 +123,7 @@ const gecko: StackLineParserFn = line => {
123
123
124
124
export const geckoStackLineParser : StackLineParser = [ GECKO_PRIORITY , gecko ] ;
125
125
126
- const winjsRegex =
127
- / ^ \s * a t (?: ( (?: \[ o b j e c t o b j e c t \] ) ? .+ ) ) ? \( ? ( (?: f i l e | m s - a p p x | h t t p s ? | w e b p a c k | b l o b ) : .* ?) : ( \d + ) (?: : ( \d + ) ) ? \) ? \s * $ / i;
126
+ const winjsRegex = / ^ \s * a t (?: ( (?: \[ o b j e c t o b j e c t \] ) ? .+ ) ) ? \( ? ( (?: [ - a - z ] + ) : .* ?) : ( \d + ) (?: : ( \d + ) ) ? \) ? \s * $ / i;
128
127
129
128
const winjs : StackLineParserFn = line => {
130
129
const parts = winjsRegex . exec ( line ) ;
0 commit comments