We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f801f commit 033d295Copy full SHA for 033d295
src/htmx.js
@@ -583,7 +583,7 @@ var htmx = (function() {
583
*/
584
function makeFragment(response) {
585
// strip head tag to determine shape of response we are dealing with
586
- const responseWithNoHead = response.replace(/<head(\s[^>]*)?>.*?<\/head>/is, '')
+ const responseWithNoHead = response.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i, '')
587
const startTag = getStartTag(responseWithNoHead)
588
/** @type DocumentFragmentWithTitle */
589
let fragment
0 commit comments