Typescript migration:

* validation/validator.js
This commit is contained in:
baldo 2020-04-08 22:45:21 +02:00
parent 9e29eb924e
commit 5c0b5abf73
4 changed files with 123 additions and 98 deletions
shared/validation

View file

@ -4,7 +4,7 @@
var constraints = {
id:{
type: 'string',
regex: /^[1-9][0-9]*/,
regex: /^[1-9][0-9]*$/,
optional: false
},
token:{