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

fix(parser)!: Make footer parsing stricter #29

Merged
merged 0 commits into from
Dec 2, 2022
Merged

Conversation

chachako
Copy link

src/commit.rs Outdated
@@ -187,7 +187,7 @@ impl<'a> Footer<'a> {
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
#[non_exhaustive]
pub enum FooterSeparator {
/// ":"
/// ": "
Copy link
Contributor

Choose a reason for hiding this comment

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

We originally had this but it was changed in #18 as the grammer specifies the space is optional.

I raised conventional-commits/parser#41 but this is another issue in the grammar.

Would you be up for checking how the reference implementation handles this case?

Copy link
Author

Choose a reason for hiding this comment

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

This seems tricky...I think I might not be up to the job 😥

Copy link
Contributor

Choose a reason for hiding this comment

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

Mind at least creating an issue in this repo for discussing the state of this?

@epage epage merged commit 8dc4a1d into crate-ci:master Dec 2, 2022
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