From: hernani Date: Tue, 19 Apr 2011 17:55:50 +0000 (+0000) Subject: Fixes small problem in the auto-linker pattern. X-Git-Tag: live~320 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/3b8fc53c848fb9dc2d073a4e91a03894d776f438?ds=inline Fixes small problem in the auto-linker pattern. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@993 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/markdownext/mdx_auto_linker.py b/forum/markdownext/mdx_auto_linker.py index 9d77c38..92f3a9f 100644 --- a/forum/markdownext/mdx_auto_linker.py +++ b/forum/markdownext/mdx_auto_linker.py @@ -21,13 +21,13 @@ TLDS = ('gw', 'gu', 'gt', 'gs', 'gr', 'gq', 'gp', 'gy', 'gg', 'gf', 'ge', 'gd', AUTO_LINK_RE = re.compile(r""" (?P.?\s*) (?P - (?P + (?:(?P ((?P[a-z][a-z]+)://)? (?P\w(?:[\w-]*\w)?\.\w(?:[\w-]*\w)?(?:\.\w(?:[\w-]*\w)?)*) ) | (?P ((?P[a-z][a-z]+)://) (?P\w(?:[\w-]*\w)?(?:\.\w(?:[\w-]*\w)?)*) - ) + )) (?P:\d+)? (?P/[^\s<]*)? )