Add more tests for modifycommand

This commit is contained in:
2025-03-27 23:53:42 +01:00
parent ba7ac07001
commit 294c04a11a
8 changed files with 912 additions and 22 deletions

View File

@@ -44,8 +44,8 @@ func ProcessRegex(content string, command utils.ModifyCommand) ([]utils.ReplaceC
// Same here, it's just string concatenation, it won't kill us
// More important is that we don't fuck up the command
// But we shouldn't be able to since it's passed by value
previous := command.LuaExpr
luaExpr := BuildLuaScript(command.LuaExpr)
previous := command.Lua
luaExpr := BuildLuaScript(command.Lua)
logger.Debug("Transformed Lua expression: %q → %q", previous, luaExpr)
// Process all regex matches