We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b5f99a commit 2a4d5f5Copy full SHA for 2a4d5f5
src/crontab.rs
@@ -112,7 +112,7 @@ fn read_crontab(file: &str) -> Result<Vec<CronJob>, CronTabError> {
112
let mut jobs: Vec<CronJob> = Vec::new();
113
114
for (line_idx, line) in file.split("\n").enumerate() {
115
- let line = line.trim_start();
+ let line = line.trim();
116
117
if line.is_empty() || line.starts_with("#") {
118
continue;
@@ -197,7 +197,7 @@ mod tests {
197
// and added some @alias tests as well.
198
199
let jobs = read_crontab(concat!(
200
- " 0 5 0 * * * example_daily\n",
+ " 0 5 0 * * * example_daily \n",
201
" # run at 2:15pm on the first of every month\n",
202
"\n",
203
" 0 15 14 1 * * example_monthly\n",
0 commit comments