]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/crontab/crontab.factor
factor: trim using lists
[factor.git] / extra / crontab / crontab.factor
index 611c54be4ee70890c44151af21b703f540ea8a3c..402ec1073bb957011a13dffa852c4a66da57f913 100644 (file)
@@ -3,8 +3,7 @@
 
 USING: accessors arrays ascii assocs calendar calendar.english
 calendar.private combinators combinators.short-circuit io kernel
-literals locals math math.order math.parser math.ranges
-sequences splitting ;
+literals math math.order math.parser ranges sequences splitting ;
 
 IN: crontab
 
@@ -19,7 +18,7 @@ ERROR: invalid-cronentry value ;
             "/" split1 [ quot seq parse-value 0 over length 1 - ] dip
             string>number <range> swap nths ] }
         { [ CHAR: - over member? ] [
-            "-" split1 quot bi@ [a,b] ] }
+            "-" split1 quot bi@ [a..b] ] }
         [ quot call 1array ]
     } cond ; inline recursive