Skip to content

Commit

Permalink
fix(html): cover more cases in bodyPrependInjectRE (vitejs#4474)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerringtonDarkholme authored and aleclarson committed Nov 8, 2021
1 parent 0d4b543 commit b5fbb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ function injectToHead(
}

const bodyInjectRE = /<\/body>/
const bodyPrependInjectRE = /<body>/
const bodyPrependInjectRE = /<body[^>]*>/
function injectToBody(
html: string,
tags: HtmlTagDescriptor[],
Expand Down

0 comments on commit b5fbb14

Please sign in to comment.