validate project name

This commit is contained in:
oleg 2016-01-09 16:43:47 +03:00
parent 8009d7e584
commit 38bd46accd

View File

@ -40,6 +40,10 @@ ProjectsCollection.prototype.validateConfig = function(config, callback) {
validateParams(config, {
type: 'object',
properties: {
name: {
type: 'string',
pattern: /^(\w|-)+$/
},
scm: {
type: 'object',
required: true,