From 6146b708dbaa58b34bfa84216647dde0853840e9 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Tue, 16 Apr 2024 13:08:28 -0600 Subject: [PATCH] fedimbed: attempt to support masked links --- src/modules/fedimbed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 6b60170..d41fb40 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -12,7 +12,7 @@ const FRIENDLY_USERAGENT = "HiddenPhox/fedimbed (https://gitdab.com/Cynosphere/HiddenPhox)"; const URLS_REGEX = - /(?:\s|^)(\|\|\s*)?(https?:\/\/[^\s<]+[^<.,:;"'\]\s])(\s*\|\|)?/g; + /(?:\s|^|\]\()(\|\|\s*)?(https?:\/\/[^\s<]+[^<.,:;"'\]|)\s])(\s*\)?\|\||\s*[\S]*?\))?/g; const SPOILER_REGEX = /(?:\s|^)\|\|([\s\S]+?)\|\|/; const PATH_REGEX = {