dtparse icon indicating copy to clipboard operation
dtparse copied to clipboard

index out of bounds: the len is 5 but the index is 5: dtparse' panicked at dtparse-2.0.0/src/lib.rs:1135:60

Open mpetri opened this issue 2 years ago • 2 comments

this test makes dtparse panic:

fn test_dtparse() {
    assert!(dtparse::parse("/2018-fifa-").is_err());
}

mpetri avatar Oct 19 '23 02:10 mpetri

Some more:

#[test]
fn test_dtparse() {
    assert!(dtparse::parse("/2009/07/").is_err());
}

#[test]
fn test_dtparse() {
    assert!(dtparse::parse("2021-09-").is_err());
}

mpetri avatar Oct 19 '23 03:10 mpetri

#[test]
fn test_dtparse() {
    assert!(dtparse::parse("2023-10-11T23:09").is_err());
}
    ```

mpetri avatar Oct 19 '23 03:10 mpetri