Skip to content

Commit

Permalink
make elided frames matcher more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
drshriveer committed Mar 27, 2024
1 parent 1650242 commit a96f254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/stack/stacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
const _defaultBufferSize = 64 * 1024 // 64 KiB

// elidedFramesMatcher matches lines that indicate frames were elided; these cannot be parsed as functions.
var elidedFramesMatcher = regexp.MustCompile(`\.\.\.\s*\d+ frames elided\s*\.\.\.`)
var elidedFramesMatcher = regexp.MustCompile(`\.\.\.\d+ frames elided\.\.\.`)

// Stack represents a single Goroutine's stack.
type Stack struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/stack/stacks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func TestParseStack(t *testing.T) {
"goroutine 1 [running]:",
"example.com/foo/bar.baz()",
" example.com/foo/bar.go:123",
"... 3 frames elided ...",
"...3 frames elided...",
"created by example.com/foo/bar.qux",
" example.com/foo/bar.go:456",
),
Expand Down

0 comments on commit a96f254

Please sign in to comment.