CommandOption: refactors code with ffStrbufSeparatedContainIgnCaseS

This commit is contained in:
李通洲
2025-09-19 14:51:31 +08:00
parent 3079b44f63
commit ef3989d18d
2 changed files with 18 additions and 20 deletions
+5
View File
@@ -749,7 +749,12 @@ static void run(FFdata* data)
if (useJsonConfig)
ffPrintJsonConfig(true /* prepare */, instance.state.resultDoc);
else
{
//If we don't have a custom structure, use the default one
if(data->structure.length == 0)
ffStrbufAppendS(&data->structure, FASTFETCH_DATATEXT_STRUCTURE); // Cannot use `ffStrbufSetStatic` here because we will modify the string
ffPrepareCommandOption(data);
}
ffStart();