summaryrefslogtreecommitdiffstatshomepage
path: root/dist/htmx.js
diff options
context:
space:
mode:
authorCarson Gross <carson@bigsky.software>2024-10-02 22:06:56 -0600
committerCarson Gross <carson@bigsky.software>2024-10-02 22:06:56 -0600
commitf4e67863d962140f52ec31651a88feb57ef90307 (patch)
tree7eb6071ceb6c2c6b84e38e266da31aff330cfe6c /dist/htmx.js
parent033d295ef90e7fed53433cbaade995ecfff471be (diff)
downloadhtmx-f4e67863d962140f52ec31651a88feb57ef90307.tar.gz
htmx-f4e67863d962140f52ec31651a88feb57ef90307.zip
release prep
Diffstat (limited to 'dist/htmx.js')
-rw-r--r--dist/htmx.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/htmx.js b/dist/htmx.js
index 1498c661..f949da04 100644
--- a/dist/htmx.js
+++ b/dist/htmx.js
@@ -583,7 +583,7 @@ var htmx = (function() {
*/
function makeFragment(response) {
// strip head tag to determine shape of response we are dealing with
- const responseWithNoHead = response.replace(/<head(\s[^>]*)?>.*?<\/head>/is, '')
+ const responseWithNoHead = response.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i, '')
const startTag = getStartTag(responseWithNoHead)
/** @type DocumentFragmentWithTitle */
let fragment