Skip to content

Commit

Permalink
shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
paperclover committed Jan 11, 2025
1 parent ec9f4a4 commit 17783cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/bindgen-lib-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ function snapshotCallerLocation(): string {
}

function stackTraceFileName(line: string): string {
const match = /(?:at\s+|\()((?:.|[a-z]:)[^:\n(\)]*)[^(]*$/i.exec(line);
const match = /(?:at\s+|\()(.:?[^:\n(\)]*)[^(\n]*$/i.exec(line);
assert(match, `Couldn't extract filename from stack trace line: ${line}`);
return match[1].replaceAll("\\", "/");
}
Expand Down

0 comments on commit 17783cb

Please sign in to comment.