mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-03 15:55:39 +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) {
|
||||
var contentWithSvgsRemoved = content.replace('/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim', '');
|
||||
var result = contentWithSvgsRemoved.match('/<title(\s[^>]*>|>)([\s\S]*?)<\/title>/im');
|
||||
var contentWithSvgsRemoved = content.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim, '');
|
||||
var result = contentWithSvgsRemoved.match(/<title(\s[^>]*>|>)([\s\S]*?)<\/title>/im);
|
||||
|
||||
if (result) {
|
||||
return result[2];
|
||||
|
Loading…
x
Reference in New Issue
Block a user