Skip to content

Commit 033d295

Browse files
fix es6 tsc checks complaining on newer s regex flag (#2938)
1 parent 56f801f commit 033d295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/htmx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ var htmx = (function() {
583583
*/
584584
function makeFragment(response) {
585585
// strip head tag to determine shape of response we are dealing with
586-
const responseWithNoHead = response.replace(/<head(\s[^>]*)?>.*?<\/head>/is, '')
586+
const responseWithNoHead = response.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i, '')
587587
const startTag = getStartTag(responseWithNoHead)
588588
/** @type DocumentFragmentWithTitle */
589589
let fragment

0 commit comments

Comments
 (0)