Skip to content

Commit

Permalink
chore: Another attempt at fixing the stack trace parsing.
Browse files Browse the repository at this point in the history
This worked locally but not on the deployed version. Let's see if this
works.
  • Loading branch information
iphydf committed Jan 26, 2025
1 parent e102698 commit 2e16ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ class _StackFrame {
const _StackFrame(this.file, this.line, this.column);

@override
String toString() => 'lib/$file:$line:$column';
String toString() => '$file:$line:$column';

static _StackFrame? fromString(String frame) {
final match = RegExp(r'package(?:s/|:)tokhub/([^ :]+)[: ](\d+):(\d+)')
.firstMatch(frame);
final match =
RegExp(r'packages?[:/]([^ :]+)[: ](\d+):(\d+)').firstMatch(frame);
if (match == null) return null;
return _StackFrame(
match.group(1)!,
Expand Down

0 comments on commit 2e16ca2

Please sign in to comment.