pydantic / speedate

Fast and simple datetime, date, time and duration parsing for rust.
https://docs.rs/speedate/latest/speedate/
MIT License
199 stars 17 forks source link

no longer accept '-' or '+' as valid numeric strings #52

Closed davidhewitt closed 11 months ago

davidhewitt commented 11 months ago

Alternative to #51 which doesn't add a new dependency.

codecov[bot] commented 11 months ago

Codecov Report

Merging #52 (7831ec1) into main (fd0c948) will decrease coverage by 0.01%. The diff coverage is 100.00%.

:exclamation: Current head 7831ec1 differs from pull request most recent head dc717e4. Consider uploading reports for the commit dc717e4 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #52 +/- ## ========================================== - Coverage 99.10% 99.09% -0.01% ========================================== Files 6 6 Lines 890 885 -5 ========================================== - Hits 882 877 -5 Misses 8 8 ``` | [Files](https://app.codecov.io/gh/pydantic/speedate/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydantic) | Coverage Δ | | |---|---|---| | [src/numbers.rs](https://app.codecov.io/gh/pydantic/speedate/pull/52?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydantic#diff-c3JjL251bWJlcnMucnM=) | `98.57% <100.00%> (-0.17%)` | :arrow_down: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/pydantic/speedate/pull/52/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydantic) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/pydantic/speedate/pull/52?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydantic). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydantic) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/pydantic/speedate/pull/52?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydantic). Last update [fd0c948...dc717e4](https://app.codecov.io/gh/pydantic/speedate/pull/52?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydantic). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydantic).