From e94b8edacc69e18b4906f90711375c679acffbd1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 4 Oct 2024 13:19:09 +0200 Subject: [PATCH] Do not save state between regex executions Fixes #843. See https://stackoverflow.com/questions/2630418/javascript-regex-returning-true-then-false-then-true-etc for more information! --- src/utils/enhance-content.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/enhance-content.js b/src/utils/enhance-content.js index 6796341d..15c215bd 100644 --- a/src/utils/enhance-content.js +++ b/src/utils/enhance-content.js @@ -19,15 +19,15 @@ function escapeHTML(html) { const LINK_REGEX = /