Skip to content

Commit

Permalink
Actual schedules could be in a "HH:MM" format, which doesn't have spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
peteroyle committed Apr 27, 2015
1 parent 39cc2ec commit c10ceb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private String lookupNamedScheduleIfNecessary(final String scheduleSpec)
throws SchedulerConfigurationException {
final String cronScheduleSpec;

if (scheduleSpec.contains(" ")) {
if (scheduleSpec.contains(" ") || scheduleSpec.contains(":")) {
cronScheduleSpec = scheduleSpec;
} else {
cronScheduleSpec = schedProperties.getProperty(scheduleSpec);
Expand Down

0 comments on commit c10ceb6

Please sign in to comment.