compilerla / conventional-pre-commit

A pre-commit hook that checks commit messages for Conventional Commits formatting
Apache License 2.0
335 stars 55 forks source link

feat(format): improve verbose commit message stripping #105

Closed kmoschcau closed 1 month ago

kmoschcau commented 1 month ago

This improves the regex for the marker in verbose commit messages, that marks the rest of the file as ignored. It simplifies the regex and adds more real test examples.

kmoschcau commented 1 month ago

I just had the thought, that we could simplify the regex even further using the singleline flag and \Z. I'll add that tomorrow, if you want to wait for that.