From 75a1318af96bd05d11b2e590f2acbd95985e67f2 Mon Sep 17 00:00:00 2001 From: Severian Date: Thu, 13 Feb 2025 14:42:59 +0800 Subject: [PATCH] chore: fixed regex issue --- src/app/api/proxy/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {