From fe6e97e832bced1c8d94b1f6270a1601ad7023d6 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sat, 29 Mar 2025 17:23:21 +0100 Subject: [PATCH] Don't deduplicate (yet) --- processor/regex.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/processor/regex.go b/processor/regex.go index 33cd2c3..fa9f7bf 100644 --- a/processor/regex.go +++ b/processor/regex.go @@ -156,7 +156,9 @@ func ProcessRegex(content string, command utils.ModifyCommand, filename string) } } - captureGroups = deduplicateGroups(captureGroups) + // TODO: Make this optional through modifier flags + // Sometimes we want to keep capture groups as is, sometimes we know what we're doing + // captureGroups = deduplicateGroups(captureGroups) if err := toLua(L, captureGroups); err != nil { logger.Error("Failed to set Lua variables: %v", err)