From bd8e92289c58500c27c6dc1d6b08a77f2c9784e9 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Sun, 8 Jan 2023 19:12:36 -0700 Subject: [PATCH] fedimbed: forgot the '?' --- 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 0b66d7d..6d6ba12 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -8,7 +8,7 @@ const {parseHtmlEntities, getUploadLimit} = require("../lib/utils.js"); const FRIENDLY_USERAGENT = "HiddenPhox/fedimbed (https://gitdab.com/Cynosphere/HiddenPhox)"; -const URLS_REGEX = /(?:\s|^)(\|\|\s+)(https?:\/\/[^\s<]+[^<.,:;"'\]\s])(\s+\|\|)/g; +const URLS_REGEX = /(?:\s|^)(\|\|\s*)?(https?:\/\/[^\s<]+[^<.,:;"'\]\s])(\s+\|\|)?/g; const SPOILER_REGEX = /^\|\|([\s\S]+?)\|\|/; const PATH_REGEX = {