From ee4e5d10aaf8be934799d4f781fbdedb4fa0ef0c Mon Sep 17 00:00:00 2001 From: Ben Croker <57572400+bencroker@users.noreply.github.com> Date: Sun, 5 Sep 2021 14:34:03 +0200 Subject: [PATCH] Remove single quotes around regexp --- src/htmx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/htmx.js b/src/htmx.js index ac931ac0..2af8e946 100644 --- a/src/htmx.js +++ b/src/htmx.js @@ -708,8 +708,8 @@ return (function () { } function findTitle(content) { - var contentWithSvgsRemoved = content.replace('/]*>|>)([\s\S]*?)<\/svg>/gim', ''); - var result = contentWithSvgsRemoved.match('/]*>|>)([\s\S]*?)<\/title>/im'); + var contentWithSvgsRemoved = content.replace(/]*>|>)([\s\S]*?)<\/svg>/gim, ''); + var result = contentWithSvgsRemoved.match(/]*>|>)([\s\S]*?)<\/title>/im); if (result) { return result[2];