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: Skip other common file extensions in linking, sort.

Alex Vandiver03c6a0f182b4
diff --git a/zerver/lib/markdown/__init__.py b/zerver/lib/markdown/__init__.py
index 3a32cf3606c..836ca7c3eef 100644
--- a/zerver/lib/markdown/__init__.py
+++ b/zerver/lib/markdown/__init__.py
@@ -277,7 +277,7 @@ def image_preview_enabled(message: Optional[Message]=None,
def list_of_tlds() -> List[str]:
# Skip a few overly-common false-positives from file extensions
- common_false_positives = set(['py', 'md'])
+ common_false_positives = set(['java', 'md', 'mov', 'py', 'zip'])
tlds = list(tld_set - common_false_positives)
tlds.sort(key=len, reverse=True)