Skip to content

Commit 3817ae7

Browse files
committed
simpler regex
1 parent 513e336 commit 3817ae7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/utils/node-stack-trace.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function filenameIsInApp(filename: string, isNative: boolean = false): bo
5353
export function node(getModule?: GetModuleFn): StackLineParserFn {
5454
const FILENAME_MATCH = /^\s*[-]{4,}$/;
5555
const FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
56-
const DATA_URI_MATCH = /at (?:async )?(?:(.+?) \(data:(.+),)/;
56+
const DATA_URI_MATCH = /at (?:async )?(.+?) \(data:(.+),/;
5757

5858
// eslint-disable-next-line complexity
5959
return (line: string) => {
@@ -64,6 +64,7 @@ export function node(getModule?: GetModuleFn): StackLineParserFn {
6464
function: dataUriMatch[1],
6565
}
6666
}
67+
6768
const lineMatch = line.match(FULL_MATCH);
6869

6970
if (lineMatch) {

0 commit comments

Comments
 (0)