changeset 5660:dd20ee7cc9d8 fix_wait-retry_check

Fixed check for waitRetry in schedule configuration fix.
author Sascha Wilde <wilde@sha-bang.de>
date Fri, 27 Oct 2023 17:02:56 +0200
parents f20cfafaedf5
children 216366f1067b
files client/src/components/importconfiguration/ScheduledImports.vue
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/ScheduledImports.vue	Fri Oct 27 16:48:08 2023 +0200
+++ b/client/src/components/importconfiguration/ScheduledImports.vue	Fri Oct 27 17:02:56 2023 +0200
@@ -702,7 +702,8 @@
   },
   methods: {
     checkMinimum() {
-      if (m = /^\s*((\d+)h)?\s*((\d+)m)?\s*((\d+)s)?\s*$/.exec(this.waitRetry)) {
+      let m = /^((\d+)h)?((\d+)m)?((\d+)s)?$/.exec(this.waitRetry)
+      if (m) {
         let s = 0;
         if (m[2]) { s += m[2]*3600 };
         if (m[4]) { s += m[4]*60 };