groks committed 80728b1

Accept dashes and periods in repo names

Comments (0)

Files changed (1)

         reponame = self.cleaned_data.get('reponame', None)
         if reponame:
             reponame = reponame.lower()
-            if not'^\w+$', reponame):
+            if not'^\w(\w|-|\.)+\w$', reponame):
                 msg = (u'Repository names can only contain letters, ' +
-                        u'numbers and underscores')
+                       u'numbers, underscores, dashes and periods. ' +
+                       u'They must begin and end with a letter or number.')
                 raise forms.ValidationError(msg)
             if self.user: