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.
This commit is contained in:
Steve Howell 2022-03-29 17:05:30 +00:00 committed by Tim Abbott
parent da6d687215
commit 71c12e313c
1 changed files with 1 additions and 1 deletions

View File

@ -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) {