mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-25 18:16:20 +00:00
validate project name
This commit is contained in:
parent
8009d7e584
commit
38bd46accd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user