From 13b48229ac26d5376324fe570260229cb4c04e92 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 22 Aug 2025 00:05:15 +0200 Subject: [PATCH] Fix some bullshit (the re) --- .vscode/launch.json | 13 +++++++++++++ processor/processor.go | 2 +- processor/processor_test.go | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 1771e74..8acfc09 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -98,6 +98,19 @@ "args": [ "cook_tacz.yml", ] + }, + { + "name": "Launch Package (ICARUS)", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}", + "cwd": "C:/Users/Administrator/Seafile/Games-ICARUS/Icarus/Saved/IME3/Mods", + "args": [ + "-loglevel", + "trace", + "cook_processorrecipes.yml", + ] } ] } \ No newline at end of file diff --git a/processor/processor.go b/processor/processor.go index 5a8f360..f90879b 100644 --- a/processor/processor.go +++ b/processor/processor.go @@ -515,7 +515,7 @@ func EvalRegex(L *lua.LState) int { L.Push(matchesTable) evalRegexLogger.Debug("Pushed matches table to Lua stack") - return 0 + return 1 } // GetLuaFunctionsHelp returns a comprehensive help string for all available Lua functions diff --git a/processor/processor_test.go b/processor/processor_test.go index fe19b0c..d4cbe67 100644 --- a/processor/processor_test.go +++ b/processor/processor_test.go @@ -159,4 +159,4 @@ func TestEvalComplexRegex(t *testing.T) { count++ }) assert.Equal(t, 1, count) -} \ No newline at end of file +}