From d88a76c4e2dfe9a7ea1287d4c54037b062f60abd Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 26 Mar 2025 22:26:02 +0100 Subject: [PATCH] Fix logging of groups --- processor/regex.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/processor/regex.go b/processor/regex.go index 3f52bba..2756d61 100644 --- a/processor/regex.go +++ b/processor/regex.go @@ -186,7 +186,9 @@ func (p *RegexProcessor) ProcessContent(content string, pattern string, luaExpr }) } - log.Printf("Capture groups: %v", captureGroups) + for _, capture := range captureGroups { + log.Printf("Capture group: %+v", *capture) + } if err := p.ToLua(L, captureGroups); err != nil { log.Printf("Error setting Lua variables: %v", err)