summaryrefslogtreecommitdiffstats
path: root/askbot/const/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/const/__init__.py')
-rw-r--r--askbot/const/__init__.py3
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)