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 = {