This is a variant of the bug in #6.
Consider this stack frame, created by Firefox:
create@http://localhost:3001/@fs/home/wycats/Code/Starbeam/starbeam/packages/debug/src/stack.ts:88:28
This ends up resulting in a parsed stack frame with file === "fs/home/wycats/Code/Starbeam/starbeam/packages/debug/src/stack.ts".
TL;DR I believe that the regex in rawParse needs to match the portion before @ with a non-greedy regex:
- (line.slice(0, 3) !== "at " && (planA = line.match(/(.*)@(.*)/)))
+ (line.slice(0, 3) !== "at " && (planA = line.match(/(.*?)@(.*)/)))
Does this make sense to you or are there other places that need this fix?
This is a variant of the bug in #6.
Consider this stack frame, created by Firefox:
This ends up resulting in a parsed stack frame with
file === "fs/home/wycats/Code/Starbeam/starbeam/packages/debug/src/stack.ts".TL;DR I believe that the regex in
rawParseneeds to match the portion before@with a non-greedy regex:Does this make sense to you or are there other places that need this fix?