From a5179fb7ed427c7dc74290d9295ff1b292fd7f3e Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Fri, 10 Dec 2010 21:50:31 -0500 Subject: autolink urls --- askbot/utils/markup.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/askbot/utils/markup.py b/askbot/utils/markup.py index 86c4c3b8..8347811a 100644 --- a/askbot/utils/markup.py +++ b/askbot/utils/markup.py @@ -1,13 +1,26 @@ +import re from askbot import const from askbot.conf import settings as askbot_settings from markdown2 import Markdown +#url taken from http://regexlib.com/REDetails.aspx?regexp_id=501 by Brian Bothwell +URL_RE = re.compile("(?