aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Dirolf <mike@dirolf.com>2012-01-14 12:47:20 -0500
committerMike Dirolf <mike@dirolf.com>2012-01-14 12:47:20 -0500
commit542324b626e96eb368c1cac34beba2b95af5deb7 (patch)
tree2c1c5405ada99eef2c9a07a8811be469cdff10ad
parente5d49077660d0000fd10d937f24b73b26712724a (diff)
downloadmarkdown-542324b626e96eb368c1cac34beba2b95af5deb7.tar.gz
markdown-542324b626e96eb368c1cac34beba2b95af5deb7.tar.bz2
markdown-542324b626e96eb368c1cac34beba2b95af5deb7.zip
Fix logic bug introduced in 35930e0928e19...
-rw-r--r--markdown/inlinepatterns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index 51b06d9..1829348 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -322,7 +322,7 @@ class LinkPattern(Pattern):
return ''
locless_schemes = ['', 'mailto', 'news']
- if netloc == '' or scheme not in locless_schemes:
+ if netloc == '' and scheme not in locless_schemes:
# This fails regardless of anything else.
# Return immediately to save additional proccessing
return ''