From 6a3d44ccd09b77fc63144b26f9c0c7267958db06 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Wed, 26 Mar 2025 11:42:00 +0100 Subject: [PATCH] Redo what claude removed --- processor/regex.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/processor/regex.go b/processor/regex.go index 0b1c938..3ff406f 100644 --- a/processor/regex.go +++ b/processor/regex.go @@ -74,6 +74,8 @@ func (p *RegexProcessor) ProcessContent(content string, pattern string, luaExpr log.Printf("Pattern modified to include (?s): %s", pattern) } + pattern = strings.ReplaceAll(pattern, "!num", `(\d*\.?\d+)`) + compiledPattern, err := regexp.Compile(pattern) if err != nil { log.Printf("Error compiling pattern: %v", err)