mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-01-25 05:06:13 +00:00
fix es6 tsc checks complaining on newer s regex flag (#2938)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user