mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 07:21:05 +00:00
fix test
This commit is contained in:
parent
760a4e5d2f
commit
a8353bd540
@ -708,7 +708,7 @@ return (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function findTitle(content) {
|
function findTitle(content) {
|
||||||
if (content.indexOf('<title>') > -1) {
|
if (content.indexOf('<title') > -1) {
|
||||||
var contentWithSvgsRemoved = content.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim, '');
|
var contentWithSvgsRemoved = content.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim, '');
|
||||||
var result = contentWithSvgsRemoved.match(/<title(\s[^>]*>|>)([\s\S]*?)<\/title>/im);
|
var result = contentWithSvgsRemoved.match(/<title(\s[^>]*>|>)([\s\S]*?)<\/title>/im);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user