diff --git a/src/adapters/gemini-adapter.ts b/src/adapters/gemini-adapter.ts index 579e7d3..efca8d9 100644 --- a/src/adapters/gemini-adapter.ts +++ b/src/adapters/gemini-adapter.ts @@ -113,7 +113,7 @@ export class GeminiAdapter extends BaseAdapter { const frontmatterRegex = /^---\s*\n([\s\S]*?)\n---\s*\n([\s\S]*)$/ const match = content.match(frontmatterRegex) - if (match) { + if (match && match[2] !== undefined) { // Return content without frontmatter return match[2] } diff --git a/tsconfig.json b/tsconfig.json index fbb4fb1..90669d5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,10 @@ "resolveJsonModule": true, "isolatedModules": true, "removeComments": true, + "moduleDetection": "force", + "verbatimModuleSyntax": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, }, "include": [ "src/**/*",