diff --git a/src/prerender.ts b/src/prerender.ts index 8f2435626b..4f0439b036 100644 --- a/src/prerender.ts +++ b/src/prerender.ts @@ -300,7 +300,7 @@ async function runParallel( await refillQueue(); } -const LINK_REGEX = /href=["']?([^"'>]+)/g; +const LINK_REGEX = /(?<=\s)href=["']?([^"'>]+)/g; function extractLinks( html: string,