File tree Expand file tree Collapse file tree
themes/htmx-theme/static/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ var htmx = (function() {
584584 */
585585 function makeFragment ( response ) {
586586 // strip head tag to determine shape of response we are dealing with
587- const responseWithNoHead = response . replace ( / < h e a d ( \s [ ^ > ] * ) ? > . * ?< \/ h e a d > / is , '' )
587+ const responseWithNoHead = response . replace ( / < h e a d ( \s [ ^ > ] * ) ? > [ \s \S ] * ?< \/ h e a d > / i , '' )
588588 const startTag = getStartTag ( responseWithNoHead )
589589 /** @type DocumentFragmentWithTitle */
590590 let fragment
Original file line number Diff line number Diff 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 ( / < h e a d ( \s [ ^ > ] * ) ? > . * ?< \/ h e a d > / is , '' )
586+ const responseWithNoHead = response . replace ( / < h e a d ( \s [ ^ > ] * ) ? > [ \s \S ] * ?< \/ h e a d > / i , '' )
587587 const startTag = getStartTag ( responseWithNoHead )
588588 /** @type DocumentFragmentWithTitle */
589589 let fragment
Original file line number Diff line number Diff 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 ( / < h e a d ( \s [ ^ > ] * ) ? > . * ?< \/ h e a d > / is , '' )
586+ const responseWithNoHead = response . replace ( / < h e a d ( \s [ ^ > ] * ) ? > [ \s \S ] * ?< \/ h e a d > / i , '' )
587587 const startTag = getStartTag ( responseWithNoHead )
588588 /** @type DocumentFragmentWithTitle */
589589 let fragment
Original file line number Diff line number Diff 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 ( / < h e a d ( \s [ ^ > ] * ) ? > . * ?< \/ h e a d > / is , '' )
586+ const responseWithNoHead = response . replace ( / < h e a d ( \s [ ^ > ] * ) ? > [ \s \S ] * ?< \/ h e a d > / i , '' )
587587 const startTag = getStartTag ( responseWithNoHead )
588588 /** @type DocumentFragmentWithTitle */
589589 let fragment
Original file line number Diff line number Diff line change @@ -121,13 +121,13 @@ The fastest way to get going with htmx is to load it via a CDN. You can simply a
121121your head tag and get going:
122122
123123``` html
124- <script src =" https://unpkg.com/htmx.org@2.0.3" integrity =" sha384-qeAN0xWnJNWF0HBnEUKZHIL+jcrMrstwVTUUNfWBjjCcucLtTls/G3Ap9zAgCq4f " crossorigin =" anonymous" ></script >
124+ <script src =" https://unpkg.com/htmx.org@2.0.3" integrity =" sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq " crossorigin =" anonymous" ></script >
125125```
126126
127127An unminified version is also available as well:
128128
129129``` html
130- <script src =" https://unpkg.com/htmx.org@2.0.3/dist/htmx.js" integrity =" sha384-8KIgStQiNEm1seO9ZjTtw62D9Yvv1KdmFlY35ND75VbqDo+3yKg3KYZUgUNcNlAn " crossorigin =" anonymous" ></script >
130+ <script src =" https://unpkg.com/htmx.org@2.0.3/dist/htmx.js" integrity =" sha384-BBDmZzVt6vjz5YbQqZPtFZW82o8QotoM7RUp5xOxV3nSJ8u2pSdtzFAbGKzTlKtg " crossorigin =" anonymous" ></script >
131131```
132132
133133While the CDN approach is extremely simple, you may want to consider
Original file line number Diff line number Diff 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 ( / < h e a d ( \s [ ^ > ] * ) ? > . * ?< \/ h e a d > / is , '' )
586+ const responseWithNoHead = response . replace ( / < h e a d ( \s [ ^ > ] * ) ? > [ \s \S ] * ?< \/ h e a d > / i , '' )
587587 const startTag = getStartTag ( responseWithNoHead )
588588 /** @type DocumentFragmentWithTitle */
589589 let fragment
Original file line number Diff line number Diff 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 ( / < h e a d ( \s [ ^ > ] * ) ? > . * ?< \/ h e a d > / is , '' )
586+ const responseWithNoHead = response . replace ( / < h e a d ( \s [ ^ > ] * ) ? > [ \s \S ] * ?< \/ h e a d > / i , '' )
587587 const startTag = getStartTag ( responseWithNoHead )
588588 /** @type DocumentFragmentWithTitle */
589589 let fragment
You can’t perform that action at this time.
0 commit comments