Skip to content

Commit

Permalink
docs(format): improve doc strings for verbose commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoschcau committed Jul 23, 2024
1 parent 28dbfe5 commit 800b147
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conventional_pre_commit/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ def r_autosquash_prefixes():


def r_verbose_commit_ignored():
"""Regex str for verbose diff"""
"""Regex str for the ignored part of verbose commit message templates"""
return r"^# -{24} >8 -{24}\r?\n.*\Z"


def strip_verbose_commit_ignored(input):
"""Strip the ignored part of verbose commit message templates."""
return re.sub(r_verbose_commit_ignored(), "", input, flags=re.DOTALL | re.MULTILINE)


Expand Down

0 comments on commit 800b147

Please sign in to comment.