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

return an error on invalid empty durations +PT and -PT #75

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

davidhewitt
Copy link
Contributor

Generally passing bytes + offset is redundant, can just offset the bytes before passing around.

@@ -1148,6 +1148,7 @@ param_tests! {
duration_too_short1: err => "", TooShort;
duration_too_short2: err => "+", TooShort;
duration_too_short3: err => "P", TooShort;
duration_too_short4: err => "+PT", TooShort;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI, this is a case which was incorrectly accepted before this change.

@davidhewitt davidhewitt enabled auto-merge (squash) November 4, 2024 11:32
@davidhewitt davidhewitt disabled auto-merge November 4, 2024 11:32
@davidhewitt davidhewitt changed the title clean up some slice parsing return an error on invalid empty durations +PT and -PT Nov 4, 2024
@davidhewitt davidhewitt merged commit a2d8a74 into main Nov 4, 2024
7 checks passed
@davidhewitt davidhewitt deleted the dh/slice-cleanup branch November 4, 2024 11:33
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.

1 participant