Fix: Avoid coordinates picked from map not validating.

This commit is contained in:
baldo 2022-09-01 14:03:41 +02:00
parent 0bf8a149e7
commit 8d73e1bb80
2 changed files with 60 additions and 62 deletions
server/shared/validation

View file

@ -41,7 +41,7 @@ const CONSTRAINTS = {
},
coords: {
type: "string",
regex: /^(-?[0-9]{1,3}(\.[0-9]{1,15})? -?[0-9]{1,3}(\.[0-9]{1,15})?)$/,
regex: /^(-?[0-9]{1,3}(\.[0-9]{1,20})? -?[0-9]{1,3}(\.[0-9]{1,20})?)$/,
optional: true,
},
monitoring: {