incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [10/23] git commit: [#6535] ticket:423 added regexp for project name
Date Thu, 19 Sep 2013 15:31:52 GMT
[#6535] ticket:423 added regexp for project name


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/30da04e3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/30da04e3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/30da04e3

Branch: refs/heads/master
Commit: 30da04e347f358450c3e248973d1b1ac5febfa3e
Parents: 30d4021
Author: coldmind <sokandpal@yandex.ru>
Authored: Wed Sep 11 12:41:26 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Sep 19 14:46:50 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/github/project.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/30da04e3/ForgeImporters/forgeimporters/github/project.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/github/project.py b/ForgeImporters/forgeimporters/github/project.py
index 1255933..282fdcd 100644
--- a/ForgeImporters/forgeimporters/github/project.py
+++ b/ForgeImporters/forgeimporters/github/project.py
@@ -31,10 +31,10 @@ from . import tasks
 log = logging.getLogger(__name__)
 
 class GitHubProjectForm(base.ProjectImportForm):
-    project_name = fev.Regex(r'^[a-z0-9][a-z0-9-]{,61}$',
+    project_name = fev.Regex(r'^[a-z0-9][a-z0-9-_.]{,61}$',
             not_empty=True,
             messages={
-                'invalid': 'Please use only letters, numbers, and dashes.',
+                'invalid': 'Valid symbols are: letters, numbers, dashes underscores, periods',
             })
 
 class GitHubProjectImporter(base.ProjectImporter):


Mime
View raw message