Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

markdown: Fix overly loose regex for previews.

Steve Howell71c12e313cee
diff --git a/static/js/markdown.js b/static/js/markdown.js
index 6f1fc478976..51109290b03 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) {