mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08: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:
parent
da6d687215
commit
71c12e313c
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user