8000 fix: removed regexp group ':(\d+):(\d+)' because we should get any lo… · Aleksey28/error-stack-parser@280acd5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 280acd5

Browse files
committed
fix: removed regexp group ':(\d+):(\d+)' because we should get any location in brackets
1 parent df5d38f commit 280acd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

error-stack-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
// capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in
6464
// case it has spaces in it, as the string is split on \s+ later on
65-
var location = sanitizedLine.match(/ (\((.+):(\d+):(\d+)\)$)/);
65+
var location = sanitizedLine.match(/ (\(.+\)$)/);
6666

6767
// remove the parenthesized location from the line, if it was matched
6868
sanitizedLine = location ? sanitizedLine.replace(location[0], '') : sanitizedLine;

0 commit comments

Comments
 (0)
0