cloudflare / cloudflare/saffron
Fail to parse standard cron
Open
- Dominant language
- Rust
- Stars
- 249
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
The following standard cron schedule fails to parse:
```rs
fn main() {
let res = "0 0 * * 0".parse::();
let description = res.unwrap().describe(English::default()).to_string();
println!("{description}");
}
// thread 'main' panicked at src/main.rs:9:27:
// called `Result::unwrap()` on an `Err` value: CronParseError(())
```
it should read something like "At midnight every sunday". However `"0 0 * * 1"` results in the correct value even though the `1` represents monday.
Contributor guide
Assessment
This issue has not been assessed yet.