Remove single quotes around regexp

This commit is contained in:
Ben Croker 2021-09-05 14:34:03 +02:00
parent a76f9f37aa
commit ee4e5d10aa

View File

@ -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];