Files
truecharts/charts/stable/appdaemon/docs/validation.md
Xstar97 cd6661797f fix(appdaemon) valid_chars for long | lat (#5946)
* fix(appdaemon) valid_chars for long | lat + port

* revert port and increase valid_chars for long/lat

* rofs false

* update validation.md

* md

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
2023-01-04 10:17:33 +02:00

648 B

Input Validation

LATITUDE Accepted formats are:

  • Float (eg. 24.2028)
  • Negative Float (eg. -24.2028)

Regex used to match this: ^(\+|-)?(?:90(?:(?:\.0{1,15})?)|(?:[0-9]|[1-8][0-9])(?:(?:\.[0-9]{1,15})?))$ You can try live here

LONGITUDE Accepted formats are:

  • Float (eg. 24.2028)
  • Negative Float (eg. -24.2028)

Regex used to match this: ^(\+|-)?(?:180(?:(?:\.0{1,15})?)|(?:[0-9]|[1-9][0-9]|1[0-7][0-9])(?:(?:\.[0-9]{1,15})?))$ You can try live here


If you find a field that you think it needs validation, please open an issue on github