Actually detect endings in stack frame regex, and not a literal $

pull/4/head
Sven Slootweg 4 years ago
parent 1a97d4ee09
commit fb82fb820a

@ -6,7 +6,7 @@ const execall = require("execall");
const defaultValue = require("default-value");
// I'm so, so sorry...
let lineRegex = /\s+at\s+(?:(?:([^\[$\n]+)\[as ([^\]]+)\] |([^\($\n]+))\(([^\)\n]+)\)|([^\n]+))(?:\n|$)/gm;
let lineRegex = /\s+at\s+(?:(?:((?:[^\[$\n]|$)+)\[as ([^\]]+)\] |((?:[^\(\n]|$)+))\(([^\)\n]+)\)|([^\n]+))(?:\n|$)/gm;
let positionRegex = /(.+):(\d+):(\d+)/;
function maybeTrim(value) {

Loading…
Cancel
Save