Fix: Replace ES2018 regex flag with compatible pattern

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 23:49:46 +01:00
co-authored by Claude Opus 4.5
parent f98476c3fd
commit 69f88a08d4
+1 -1
View File
@@ -88,7 +88,7 @@ function parseMarkdownPost(filename: string, content: string): BlogPost | null {
// Extract excerpt from introduction or meta description // Extract excerpt from introduction or meta description
let excerpt = metaDescription; let excerpt = metaDescription;
if (!excerpt) { if (!excerpt) {
const introMatch = content.match(/## Einführung\s*\n\n(.+?)(?:\n\n|$)/s); const introMatch = content.match(/## Einführung\s*\n\n([\s\S]+?)(?:\n\n|$)/);
if (introMatch) { if (introMatch) {
excerpt = introMatch[1].trim().slice(0, 200) + '...'; excerpt = introMatch[1].trim().slice(0, 200) + '...';
} }