Fix: Avoid coordinates picked from map not validating.

This commit is contained in:
baldo 2022-09-01 14:03:41 +02:00
parent d135665b60
commit f359509ba0
2 changed files with 62 additions and 64 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: {