Skip to content

Commit

Permalink
Fix regression introduced in version 0.4.4. Fixes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisiirak committed Oct 21, 2014
1 parent 121ef96 commit 33bde27
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions lib/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ CronExpression._parseField = function _parseField (field, value, constraints) {
);
}

if (field == 'dayOfWeek') {
value = value % 7;
}

if (value > max) {
stack.push(value);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cron-parser",
"version": "0.4.4",
"version": "0.4.5",
"description": "Node.js library for parsing crontab instructions",
"main": "lib/parser.js",
"directories": {
Expand Down
4 changes: 0 additions & 4 deletions test/expression.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,6 @@ test('day of month and week are both set and dow is 6,0', function(t) {

var next = interval.next();

console.error(next);

t.ok(next, 'Found next scheduled interval');
t.equal(next.getDay(), 6, 'Day matches');
t.equal(next.getMonth(), 7, 'Month matches');
Expand Down Expand Up @@ -501,8 +499,6 @@ test('day of month and week are both set and dow is 6-7', function(t) {

var next = interval.next();

console.error(next);

t.ok(next, 'Found next scheduled interval');
t.equal(next.getDay(), 6, 'Day matches');
t.equal(next.getMonth(), 7, 'Month matches');
Expand Down

0 comments on commit 33bde27

Please sign in to comment.