Skip to content

Conversation

@petermueller
Copy link

I want to kill it with fire, but it works.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to add an unless obj[:date].match(/^\d{4}-\d{2}-\d{2}/) but wasn't sure how I should do the rewrite to prompt the user that their date is invalid.
Another thing I was thinking was to either split the string, or have a prompt for year, month, day, and then fork it into Date::valid_date?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants