diff --git a/src/lib/outputParsers/listLineOutputParser.ts b/src/lib/outputParsers/listLineOutputParser.ts index 1e2f0f5..fcd2f07 100644 --- a/src/lib/outputParsers/listLineOutputParser.ts +++ b/src/lib/outputParsers/listLineOutputParser.ts @@ -23,7 +23,7 @@ class LineListOutputParser extends BaseOutputParser { const startKeyIndex = text.indexOf(`<${this.key}>`); const endKeyIndex = text.indexOf(``); - if (startKeyIndex === -1 || endKeyIndex === -1) { + if (startKeyIndex === -1 && endKeyIndex === -1) { return []; }