Redo what claude removed

This commit is contained in:
2025-03-26 11:42:00 +01:00
parent c22e6ff41f
commit 6a3d44ccd0

View File

@@ -74,6 +74,8 @@ func (p *RegexProcessor) ProcessContent(content string, pattern string, luaExpr
log.Printf("Pattern modified to include (?s): %s", pattern) log.Printf("Pattern modified to include (?s): %s", pattern)
} }
pattern = strings.ReplaceAll(pattern, "!num", `(\d*\.?\d+)`)
compiledPattern, err := regexp.Compile(pattern) compiledPattern, err := regexp.Compile(pattern)
if err != nil { if err != nil {
log.Printf("Error compiling pattern: %v", err) log.Printf("Error compiling pattern: %v", err)