diff --git a/src/app/api/proxy/route.ts b/src/app/api/proxy/route.ts index 63cfd58..ba3bac6 100644 --- a/src/app/api/proxy/route.ts +++ b/src/app/api/proxy/route.ts @@ -53,7 +53,7 @@ function findTagsBetween(content: string, startMarker: string, endMarker: string const matches: PersonaMatch[] = []; - const tagPattern = /<([^/>\s][^>]*)>([^]*?)<\/\1>/g; + const tagPattern = /<([^/>\s][^>]*)>([\s\S]*?)<\/\1>/g; let match; while ((match = tagPattern.exec(section)) !== null) {