Remove the vestiges of xml and json

This commit is contained in:
2025-03-27 21:31:45 +01:00
parent 25326ea11b
commit 912950d463
2 changed files with 3 additions and 67 deletions

View File

@@ -99,7 +99,7 @@ func Process(p Processor, filename string, pattern string, luaExpr string) (int,
}
// Process the content
logger.Debug("Starting content processing with %s processor", getProcessorType(p))
logger.Debug("Starting content processing")
modifiedContent, modCount, matchCount, err := p.ProcessContent(fileContent, pattern, luaExpr)
if err != nil {
logger.Error("Processing error: %v", err)
@@ -178,20 +178,6 @@ func detectFileType(filename string, content string) string {
}
}
// Helper function to get processor type name
func getProcessorType(p Processor) string {
switch p.(type) {
case *RegexProcessor:
return "Regex"
case *XMLProcessor:
return "XML"
case *JSONProcessor:
return "JSON"
default:
return "Unknown"
}
}
// ToLua converts a struct or map to a Lua table recursively
func ToLua(L *lua.LState, data interface{}) (lua.LValue, error) {
switch v := data.(type) {