chore: fixed regex issue

This commit is contained in:
Severian
2025-02-13 14:42:59 +08:00
parent b6dcc131d3
commit 75a1318af9

View File

@@ -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) {