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

Parse datetimes more strictly #364

Merged
merged 4 commits into from
Dec 12, 2022
Merged

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Nov 28, 2022

Related Issue(s):

Description:

The whole string must now match the regex. Includes a tweak to the regex to match a valid string that was being missed before.

PR Checklist:

  • Code is formatted
  • Tests pass
  • Changes are added to the CHANGELOG

The whole string must now match the regex.
@gadomski gadomski requested a review from philvarner November 28, 2022 22:18
@codecov-commenter
Copy link

Codecov Report

Base: 85.30% // Head: 85.42% // Increases project coverage by +0.12% 🎉

Coverage data is based on head (d647d6b) compared to base (3f305e2).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
+ Coverage   85.30%   85.42%   +0.12%     
==========================================
  Files          11       11              
  Lines         796      796              
==========================================
+ Hits          679      680       +1     
+ Misses        117      116       -1     
Impacted Files Coverage Δ
pystac_client/item_search.py 92.97% <ø> (+0.28%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gadomski gadomski added this to the 0.5.2 milestone Dec 12, 2022
Copy link
Collaborator

@pjhartzell pjhartzell left a comment

Choose a reason for hiding this comment

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

Looks OK to me.

@gadomski gadomski merged commit 2b00b1e into main Dec 12, 2022
@gadomski gadomski deleted the issues/358-poorly-formed-dates branch December 12, 2022 20:53
@gadomski gadomski modified the milestones: 0.5.2, 0.6.0 Jan 27, 2023
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.

Unexpected Behaviour on Poorly Formed Date
3 participants