Skip to content

Commit

Permalink
fix: fixed removing last round bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey28 committed Oct 7, 2021
1 parent 523951b commit df5d38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error-stack-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
return filtered.map(function(line) {
if (line.indexOf('(eval ') > -1) {
// Throw away eval information until we implement stacktrace.js/stackframe#8
line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(\),.*$)/g, '');
line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(,.*$)/g, '');
}
var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '(').replace(/^.*?\s+/, '');

Expand Down

0 comments on commit df5d38f

Please sign in to comment.