Skip to content

Commit 7a5f284

Browse files
committed
chore: remove pointer address with more than 10 digits
1 parent c60e2e7 commit 7a5f284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/demoinfocs/demoinfocs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ func assertGolden(tb testing.TB, assertions *assert.Assertions, testCase string,
607607
}
608608

609609
func removePointers(s []byte) []byte {
610-
r := regexp.MustCompile(`\(0x[\da-f]{10}\)`)
610+
r := regexp.MustCompile(`\(0x[\da-f]+\)`)
611611

612612
return r.ReplaceAll(s, []byte("(non-nil)"))
613613
}

0 commit comments

Comments
 (0)