crate-ci / git-conventional

Conventional Commit API
docs.rs/git-conventional
Apache License 2.0
28 stars 7 forks source link

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

Closed chachako closed 1 year ago

chachako commented 2 years ago

Previously, due to loose footer separator parsing, https://xxx was incorrectly parsed as a footer, so this PR fixed it.

See: https://git-scm.com/docs/git-interpret-trailers#:~:text=This%20means%20that%20the%20trimmed%20%3Ctoken%3E%20and%20%3Cvalue%3E%20will%20be%20separated%20by%20%27%3A%20%27%20(one%20colon%20followed%20by%20one%20space).