bugdown: Blacklist linkifying the .md TLD.

Fixes #2065.
This commit is contained in:
Tim Abbott 2016-12-29 18:15:48 -08:00
parent b809d8edee
commit b36e94c954
2 changed files with 7 additions and 2 deletions

View File

@ -410,6 +410,11 @@
"<p>%s</p>",
"t.co"
],
[
"readme.md",
"<p>readme.md</p>",
"readme.md"
],
[
"go to views.org please",
"<p>go to %s please</p>",

View File

@ -71,8 +71,8 @@ def unescape(s):
def list_of_tlds():
# type: () -> List[Text]
# HACK we manually blacklist .py
blacklist = [u'PY\n', ]
# HACK we manually blacklist a few domains
blacklist = [u'PY\n', u"MD\n"]
# tlds-alpha-by-domain.txt comes from http://data.iana.org/TLD/tlds-alpha-by-domain.txt
tlds_file = os.path.join(os.path.dirname(__file__), 'tlds-alpha-by-domain.txt')