From f6fc21cbeb7c24f67e68eb3488ebaf3d9803b51e Mon Sep 17 00:00:00 2001 From: Stephen Eckels Date: Mon, 19 Aug 2024 15:07:42 +0000 Subject: [PATCH] Fix test --- objfile/patterns_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objfile/patterns_test.go b/objfile/patterns_test.go index 94a6bd4..7e736ab 100644 --- a/objfile/patterns_test.go +++ b/objfile/patterns_test.go @@ -146,7 +146,7 @@ func TestRegexpPatternFromYaraPattern(t *testing.T) { } // manually translated - if reg.rawre != `\x8D.....\xEB..{0,50}\x8B..\x01\x00\x00\x8B...\x85.\x75.` { + if reg.rawre != `\x8D.....\xEB..{0,50}?\x8B..\x01\x00\x00\x8B...\x85.\x75.` { t.Errorf("incorrect pattern") }