From c35ee38ff75bdd904676f4e243dd8367aac9187f Mon Sep 17 00:00:00 2001 From: Andy Hartley Date: Tue, 13 Aug 2019 15:22:52 +0100 Subject: [PATCH] Fix digit repeat --- src/CronLint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CronLint.php b/src/CronLint.php index 1907af3..ecceecd 100644 --- a/src/CronLint.php +++ b/src/CronLint.php @@ -149,7 +149,7 @@ function ($v) { list($mins, $hours, $dayofmonth, $month, $dayofweek) = array_slice($args, 0, 5); $regEx = [ - 'minhour' => '/^([\*|\d])$|^([\*|\d]+?(\-\d+))$|^([\*]\/\d+)$|^([\d+]\/\d+?(\-\d+))$|^(\d+-\d+\/[\d]+)$/i', + 'minhour' => '/^([\*|\d]+)$|^([\*|\d]+?(\-\d+))$|^([\*]\/\d+)$|^([\d+]\/\d+?(\-\d+))$|^(\d+-\d+\/[\d]+)$/i', 'daymonth' => '/^(\d|\*)$/i', 'month' => '/^(\d|\*)$/i', 'dayweek' => '/^(\*|\d|[a-z]{3})$/i',