diff options
author | Tomasz Zielinski <tomasz.zielinski@pyconsultant.eu> | 2012-01-24 18:15:21 +0100 |
---|---|---|
committer | Tomasz Zielinski <tomasz.zielinski@pyconsultant.eu> | 2012-01-24 18:15:21 +0100 |
commit | d1056fc8abcb09720704b4c4980818ccf5184534 (patch) | |
tree | de73bd28c3e1afd76c1624fc8fee7ebfc9bd1b1c /askbot/const | |
parent | 6145566d88d7e270ea6270d5ab2a21a194bb5a59 (diff) | |
download | askbot-d1056fc8abcb09720704b4c4980818ccf5184534.tar.gz askbot-d1056fc8abcb09720704b4c4980818ccf5184534.tar.bz2 askbot-d1056fc8abcb09720704b4c4980818ccf5184534.zip |
Main page thread summary caching BETA
Diffstat (limited to 'askbot/const')
-rw-r--r-- | askbot/const/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/askbot/const/__init__.py b/askbot/const/__init__.py index 56ef89cf..0f981dee 100644 --- a/askbot/const/__init__.py +++ b/askbot/const/__init__.py @@ -84,7 +84,8 @@ UNANSWERED_QUESTION_MEANING_CHOICES = ( #correct regexes - plus this must be an anchored regex #to do full string match TAG_CHARS = r'\w+.#-' -TAG_REGEX = r'^[%s]+$' % TAG_CHARS +TAG_REGEX_BARE = r'[%s]+' % TAG_CHARS +TAG_REGEX = r'^%s$' % TAG_REGEX_BARE TAG_SPLIT_REGEX = r'[ ,]+' TAG_SEP = ',' # has to be valid TAG_SPLIT_REGEX char and MUST NOT be in const.TAG_CHARS EMAIL_REGEX = re.compile(r'\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b', re.I) |