Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/crontab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ fn read_crontab(file: &str) -> Result<Vec<CronJob>, CronTabError> {
let mut jobs: Vec<CronJob> = Vec::new();

for (line_idx, line) in file.split("\n").enumerate() {
let line = line.trim_start();
let line = line.trim();

if line.is_empty() || line.starts_with("#") {
continue;
Expand Down Expand Up @@ -197,7 +197,7 @@ mod tests {
// and added some @alias tests as well.

let jobs = read_crontab(concat!(
" 0 5 0 * * * example_daily\n",
" 0 5 0 * * * example_daily \n",
" # run at 2:15pm on the first of every month\n",
"\n",
" 0 15 14 1 * * example_monthly\n",
Expand Down