scientist-softserv / west-virginia-university

West Virginia University
0 stars 0 forks source link

🐛 Update #add_date to handle more cases #151

Closed kirkkwang closed 12 months ago

kirkkwang commented 12 months ago

Story

This commit will update the #add_date method to handle cases such as:

YYYY YYYYs YYYY's YYYY-MM YYYY-MM-DD No date provided (blank string)

Ref:

Expected Behavior Before Changes

Dates like "approximately 1963" weren't handled correctly and throwing the sort and display off.

Expected Behavior After Changes

More edge cases are being handled.

Screenshots / Video

https://github.com/scientist-softserv/west-virginia-university/assets/19597776/bdbfc5fd-e667-4e7c-ae9f-da478a3678c4


image