lib/rufus/sc/cronline.rb in rufus-scheduler-2.0.21 vs lib/rufus/sc/cronline.rb in rufus-scheduler-2.0.22
- old
+ new
@@ -259,9 +259,11 @@
def parse_range(item, min, max)
return %w[ L ] if item == 'L'
+ item = '*' + item if item.match(/^\//)
+
m = item.match(RANGE_REGEX)
raise ArgumentError.new(
"cannot parse #{item.inspect}"
) unless m