From bd50cff7c9fbcb666bfafaf4e47c58edc895de1b Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 8 Nov 2023 10:05:51 -0700 Subject: [PATCH] fedimbed: fix spoilered links with text in front of them --- 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 a977df8..abb3d01 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -13,7 +13,7 @@ const FRIENDLY_USERAGENT = const URLS_REGEX = /(?:\s|^)(\|\|\s*)?(https?:\/\/[^\s<]+[^<.,:;"'\]\s])(\s+\|\|)?/g; -const SPOILER_REGEX = /^\|\|([\s\S]+?)\|\|/; +const SPOILER_REGEX = /(?:\s|^)\|\|([\s\S]+?)\|\|/; const PATH_REGEX = { mastodon: /^\/@(.+?)\/(\d+)\/?/,