Skip to content

Commit

Permalink
Fix the allowed characters in table names, - should be allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jan 12, 2012
1 parent 20b0000 commit 7e902e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webstore/validation.py
Expand Up @@ -5,7 +5,7 @@ class NamingException(Exception):
def __init__(self, field):
self.field = field

VALID_NAME = re.compile('^[a-zA-Z0-9][a-zA-Z0-9_]{0,254}$')
VALID_NAME = re.compile('^[a-zA-Z0-9\-][a-zA-Z0-9_\-]{0,254}$')
VALID_DBNAME = re.compile('^[a-zA-Z0-9][a-zA-Z0-9_\-]{0,254}$')
VALID_USERNAME = re.compile('^[a-zA-Z0-9][a-zA-Z0-9_\-\.]{0,254}$')

Expand Down

0 comments on commit 7e902e1

Please sign in to comment.