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)