waltzofpearls / dateparser

Parse dates in commonly used string formats with Rust.
MIT License
41 stars 8 forks source link

Seemingly arbitrary leniency towards commas #49

Open Ictoan42 opened 3 months ago

Ictoan42 commented 3 months ago

Currently some formats allow unnecessary commas others enforce commas in specific places, and others disallow commas entirely. A few examples:

I'm looking to put together a PR about this (I've already done some brief tests, looking to make it lenient in every case i could think of) but I just wanted to check if this is something you'd be interested in, and check that there aren't any massive pitfalls that I haven't noticed yet that are enforcing the current behaviour