This commit is contained in:
carson 2021-09-06 08:18:46 -06:00
parent 760a4e5d2f
commit a8353bd540

View File

@ -708,7 +708,7 @@ return (function () {
}
function findTitle(content) {
if (content.indexOf('<title>') > -1) {
if (content.indexOf('<title') > -1) {
var contentWithSvgsRemoved = content.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim, '');
var result = contentWithSvgsRemoved.match(/<title(\s[^>]*>|>)([\s\S]*?)<\/title>/im);