Skip to content

Commit c33793a

Browse files
authored
Merge pull request #4 from andyhartley/patch-1
Replace digit repeat character
2 parents cdbe283 + c35ee38 commit c33793a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CronLint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function ($v) {
149149
list($mins, $hours, $dayofmonth, $month, $dayofweek) = array_slice($args, 0, 5);
150150

151151
$regEx = [
152-
'minhour' => '/^([\*|\d])$|^([\*|\d]+?(\-\d+))$|^([\*]\/\d+)$|^([\d+]\/\d+?(\-\d+))$|^(\d+-\d+\/[\d]+)$/i',
152+
'minhour' => '/^([\*|\d]+)$|^([\*|\d]+?(\-\d+))$|^([\*]\/\d+)$|^([\d+]\/\d+?(\-\d+))$|^(\d+-\d+\/[\d]+)$/i',
153153
'daymonth' => '/^(\d|\*)$/i',
154154
'month' => '/^(\d|\*)$/i',
155155
'dayweek' => '/^(\*|\d|[a-z]{3})$/i',

0 commit comments

Comments
 (0)