From 71c12e313cee7dfc0e0111c84bb1c32ffe66b76c Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Tue, 29 Mar 2022 17:05:30 +0000 Subject: [PATCH] markdown: Fix overly loose regex for previews. Fortunately, the only impact of this bug was that we would unnecessarily wait for the server to render the markdown if we got false matches. --- static/js/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/markdown.js b/static/js/markdown.js index 6f1fc47897..51109290b0 100644 --- a/static/js/markdown.js +++ b/static/js/markdown.js @@ -34,7 +34,7 @@ const preview_regexes = [ // Twitter and youtube links are given previews - /\S*(?:twitter|youtube).com\/\S*/, + /\S*(?:twitter|youtube)\.com\/\S*/, ]; function contains_preview_link(content) {