]> git.openstreetmap.org Git - osqa.git/commitdiff
#OSQA-602, the markdown syntax ** now doesn't interfer with the urlize extension.
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 27 Mar 2011 22:38:38 +0000 (22:38 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sun, 27 Mar 2011 22:38:38 +0000 (22:38 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@909 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/markdownext/mdx_urlize.py

index 94fa516d4549508c15488135eff8eaae03fa3b31..b323531fa3822ac0db30643986f88cdd535029c6 100644 (file)
@@ -5,7 +5,7 @@ URLIZE_RE = '(%s)' % '|'.join([
     r'<(?:f|ht)tps?://[^>]*>',
     r'\b(?:f|ht)tps?://[^)<>\s]+[^.,)<>\s]',
     r'\bwww\.[^)<>\s]+[^.,)<>\s]',
-    r'[^(<\s]+\.(?:com|net|org)\b',
+    r'[^*(<\s]+\.(?:com|net|org)\b',
 ])
 
 class UrlizePattern(markdown.inlinepatterns.Pattern):