const bodyInjectRE = /<\/body>/ ; export function injectHTMLTag ( html , tagHtml ) { if ( bodyInjectRE . test ( html ) ) { return html . replace ( bodyInjectRE , `${ tagHtml }\n$&` ) ; } return html + `\n` + tagHtml ; }