fedimbed: forgot the '?'

This commit is contained in:
Cynthia Foxwell 2023-01-08 19:12:36 -07:00
parent d98dc9b925
commit bd8e92289c

View file

@ -8,7 +8,7 @@ const {parseHtmlEntities, getUploadLimit} = require("../lib/utils.js");
const FRIENDLY_USERAGENT = const FRIENDLY_USERAGENT =
"HiddenPhox/fedimbed (https://gitdab.com/Cynosphere/HiddenPhox)"; "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 SPOILER_REGEX = /^\|\|([\s\S]+?)\|\|/;
const PATH_REGEX = { const PATH_REGEX = {