summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-01-31 21:41:56 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2012-01-31 21:45:01 +0100
commitaf32a0aa44a15c004446722144c5581f6fa8dcb1 (patch)
tree13de2db1753206d903784d8de71f895f184a0ef0
parent83b90fef119dba1a9bae4ebf38e30478c991c34e (diff)
downloadsites-af32a0aa44a15c004446722144c5581f6fa8dcb1.tar.gz
sites-af32a0aa44a15c004446722144c5581f6fa8dcb1.tar.bz2
sites-af32a0aa44a15c004446722144c5581f6fa8dcb1.zip
listname: fixed regex
-rwxr-xr-xindex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.py b/index.py
index 284fee9..7b4a745 100755
--- a/index.py
+++ b/index.py
@@ -22,7 +22,7 @@ app = web.application(urls, globals(), autoreload=False)
create_form = form.Form(
form.Textbox('name',
form.notnull,
- form.regexp(r'^[a-zA-Z0-9+.-_]{2,}$', 'This name should least be two characters long ' +
+ form.regexp(r'^[a-zA-Z0-9+._-]{2,}$', 'This name should least be two characters long ' +
'and may only consist of letters, digits, plus (+), minus (-), and underlines (_).'),
form.Validator('This name ends with a reserved suffix. Please choose another name.',
util.validate_listname),