Explorar o código

fix no end schedule parsing

Innocenty Enikeev %!s(int64=8) %!d(string=hai) anos
pai
achega
a38017bae9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugins/saver.lisp

+ 1 - 1
plugins/saver.lisp

@@ -12,7 +12,7 @@
                    (let ((min (if star-pos def-min
                                   (when dash-pos (parse-integer text :end dash-pos))))
                          (max (if star-pos def-max
-                                  (when dash-pos (parse-integer text :start (1+ dash-pos) :end slash-pos))))
+                                  (when dash-pos (ignore-errors (parse-integer text :start (1+ dash-pos) :end slash-pos)))))
                          (step (or (when slash-pos (parse-integer text :start (1+ slash-pos))) 1)))
                      (list nil min max step))
                    (list (sort (mapcar #'parse-integer (split-sequence:split-sequence #\, text)) #'<))))))