From 0ab961c9d906eb65b606fd7987d9ab0760072e1d Mon Sep 17 00:00:00 2001 From: hoopher <42736871+hoopher@users.noreply.github.com> Date: Thu, 17 Aug 2023 22:36:50 +0400 Subject: [PATCH] fix: :bug: fix #3 --- commit_linter/__init__.py | 2 +- commit_linter/hooks/commit-msg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commit_linter/__init__.py b/commit_linter/__init__.py index 8e25b8b..3e46c1e 100644 --- a/commit_linter/__init__.py +++ b/commit_linter/__init__.py @@ -2,6 +2,6 @@ __email__ = "Unknown@no-email.com" __license__ = "MIT" -__version__ = "1.0.2" +__version__ = "1.0.3" __title__ = "Commit Messages Linter" __description__ = "simple git hooks scripts for a better git experience that enforces you to use the known commit messages conventions" diff --git a/commit_linter/hooks/commit-msg b/commit_linter/hooks/commit-msg index 65d2b29..1de17d3 100644 --- a/commit_linter/hooks/commit-msg +++ b/commit_linter/hooks/commit-msg @@ -35,7 +35,7 @@ def main(): sys.exit(1) else: commitPrefix = ss.split(':')[0] - commitPostfix = ss.split(':')[1] + commitPostfix = ss.split(':', 1)[1] if '(' in commitPrefix: commitEmojie = emojies.get(commitPrefix.split('(')[0]) newCommit = open(filename, 'w')