Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh(DateTimeParser): option to cleanup input string before parsing (#569) #4390

Merged
merged 1 commit into from Jan 15, 2024

Conversation

matejk
Copy link
Contributor

@matejk matejk commented Jan 8, 2024

Added a second set of parse functions with a new argument cleanup to explicitly request the input string to be cleaned.

Existing parse and tryParse perform cleanup. These could be marked as deprecated to issue compiler warnings to transition to stricter checking by default in one of the next releases.

@killerbot242, @aleks-f : what is your opinion on this?

@matejk matejk added this to the Release 1.13.1 milestone Jan 8, 2024
@matejk matejk requested a review from aleks-f January 10, 2024 14:25
Copy link
Member

@aleks-f aleks-f left a comment

Choose a reason for hiding this comment

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

I say, just trim surrounding spaces indiscriminately and let's leave it at that, no additional functions and no future deprecation.

@killerbot242
Copy link

I agree with Aleks, let's just trim, document this, so a committed feature, and nothing more.

@matejk matejk force-pushed the 569-datetime-parser-strict-option branch from 185ad6c to 4453cb0 Compare January 14, 2024 22:04
@matejk matejk marked this pull request as ready for review January 14, 2024 22:31
@matejk matejk self-assigned this Jan 15, 2024
@matejk matejk merged commit bbd07b6 into devel Jan 15, 2024
28 checks passed
@matejk matejk deleted the 569-datetime-parser-strict-option branch January 15, 2024 07:06
@matejk matejk added the fixed label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants