From af32a0aa44a15c004446722144c5581f6fa8dcb1 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 31 Jan 2012 21:41:56 +0100 Subject: listname: fixed regex --- index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3-1-g7c22