mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user