aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-10-06 07:20:10 -0400
committerWaylan Limberg <waylan@gmail.com>2011-10-06 07:20:10 -0400
commitc0a7a4b0b034a90fd76e34ec8533c98a60afe888 (patch)
treed98bcb3927ca3fa5fab5bd12dd5a2af13dec5f63
parent365f7f327727024119e918bf3f98c2ca2079a9dd (diff)
downloadmarkdown-c0a7a4b0b034a90fd76e34ec8533c98a60afe888.tar.gz
markdown-c0a7a4b0b034a90fd76e34ec8533c98a60afe888.tar.bz2
markdown-c0a7a4b0b034a90fd76e34ec8533c98a60afe888.zip
Allow UPPERCASE urls in auto links.
-rw-r--r--markdown/inlinepatterns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index 1e05e00..109cc05 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -112,7 +112,7 @@ REFERENCE_RE = NOIMG + BRK+ r'\s?\[([^\]]*)\]' # [Google][3]
SHORT_REF_RE = NOIMG + r'\[([^\]]+)\]' # [Google]
IMAGE_REFERENCE_RE = r'\!' + BRK + '\s?\[([^\]]*)\]' # ![alt text][2]
NOT_STRONG_RE = r'((^| )(\*|_)( |$))' # stand-alone * or _
-AUTOLINK_RE = r'<((?:f|ht)tps?://[^>]*)>' # <http://www.123.com>
+AUTOLINK_RE = r'<((?:[Ff]|[Hh][Tt])[Tt][Pp][Ss]?://[^>]*)>' # <http://www.123.com>
AUTOMAIL_RE = r'<([^> \!]*@[^> ]*)>' # <me@example.com>
HTML_RE = r'(\<([a-zA-Z/][^\>]*?|\!--.*?--)\>)' # <...>