Remove the vestiges of xml and json
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user