diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-06-09 10:16:55 -0700 |
---|---|---|
committer | fadeev <fadeev@bacchus.bio.uci.edu> | 2010-06-09 10:17:33 -0700 |
commit | 9fc9db2f20b08cbe411ae64e9998f21d0fa8041b (patch) | |
tree | f3bf3e57029ccd0b42da2ac0bf52413dda82c9d0 | |
parent | c5b64b55d4ba9489140540252618c16deac06b35 (diff) | |
download | askbot-9fc9db2f20b08cbe411ae64e9998f21d0fa8041b.tar.gz askbot-9fc9db2f20b08cbe411ae64e9998f21d0fa8041b.tar.bz2 askbot-9fc9db2f20b08cbe411ae64e9998f21d0fa8041b.zip |
made a broader definition of tag regex
-rwxr-xr-x | forum/const.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/const.py b/forum/const.py index 07b0291c..d546e0c5 100755 --- a/forum/const.py +++ b/forum/const.py @@ -67,7 +67,7 @@ assert(UNANSWERED_MEANING in UNANSWERED_MEANING_LIST) #however it will be hard to expect that people will type #correct regexes - plus this must be an anchored regex #to do full string match -TAG_REGEX = r'^[a-z0-9\+\.\-]+$' +TAG_REGEX = r'^[\w\+\.\-]+$' TAG_SPLIT_REGEX = r'[ ,]+' MAX_TAG_LENGTH = 20 #default 20 chars MAX_TAGS_PER_POST = 5 #no more than five tags |