Skip to content

Commit

Permalink
fix(prerender): only match href attribute after whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 4, 2023
1 parent 451d314 commit 4a1bfbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ async function runParallel<T>(
await refillQueue();
}

const LINK_REGEX = /href=["']?([^"'>]+)/g;
const LINK_REGEX = /(?<=\s)href=["']?([^"'>]+)/g;

function extractLinks(
html: string,
Expand Down

0 comments on commit 4a1bfbf

Please sign in to comment.