mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-04 16:25:09 +00:00
Remove single quotes around regexp
This commit is contained in:
parent
a76f9f37aa
commit
ee4e5d10aa
@ -708,8 +708,8 @@ return (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function findTitle(content) {
|
function findTitle(content) {
|
||||||
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);
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
return result[2];
|
return result[2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user