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')