Mercurial > gemma
changeset 2407:8fc546b03822
client: define stretches: fixed start/endpoint validation when editing an existing stretch
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 28 Feb 2019 10:30:33 +0100 |
parents | b72d3da6409c |
children | 02d30251d594 |
files | client/src/components/ImportStretches.vue |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue Thu Feb 28 10:18:21 2019 +0100 +++ b/client/src/components/ImportStretches.vue Thu Feb 28 10:30:33 2019 +0100 @@ -535,8 +535,8 @@ }, pointsValid() { if (!this.startrhm || !this.endrhm) return true; - const start = this.startrhm.replace(/\D+/, "") * 1; - const end = this.endrhm.replace(/\D+/, "") * 1; + const start = this.startrhm.replace(/\D+/g, "") * 1; + const end = this.endrhm.replace(/\D+/g, "") * 1; const result = start < end; return result; }