Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for handling inverted cron ranges #1519

Merged
merged 2 commits into from
Jun 9, 2020
Merged

Conversation

Hilbrand
Copy link
Member

@Hilbrand Hilbrand commented Jun 8, 2020

This fix adds support for inverted cron ranged. For example SUN-WEN.
It also works all ranges and also with additional increments.

Closes #1516

Signed-off-by: Hilbrand Bouwkamp hilbrand@h72.nl

This fix adds support for inverted cron ranged. For example SUN-WEN.
It also works all ranges and also with additional increments.

Closes openhab#1516

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
Copy link
Contributor

@cweitkamp cweitkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for the quick fix.

I left one really nit-picking comment.

Comment on lines 445 to 447
cronExpression, chronoField, r[1], max));

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be really nice to get rid of this empty line in front of the closing bracket.

Suggested change
cronExpression, chronoField, r[1], max));
}
cronExpression, chronoField, r[1], max));
}

@cweitkamp cweitkamp added the bug An unexpected problem or unintended behavior of the Core label Jun 9, 2020
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
@cweitkamp cweitkamp merged commit e84d01b into openhab:master Jun 9, 2020
@Hilbrand Hilbrand deleted the 1516 branch June 9, 2020 10:50
@cweitkamp cweitkamp added this to the 3.0 milestone Jun 25, 2020
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 11, 2023
* Fix for handling inverted cron ranges

This fix adds support for inverted cron ranged. For example SUN-WEN.
It also works all ranges and also with additional increments.

Closes openhab#1516

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
GitOrigin-RevId: e84d01b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimum Higher than Maximum Range in Cron Expression
2 participants