Skip to content

Commit 0ab961c

Browse files
committed
fix: 🐛 fix #3
1 parent a294798 commit 0ab961c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commit_linter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
__email__ = "[email protected]"
33

44
__license__ = "MIT"
5-
__version__ = "1.0.2"
5+
__version__ = "1.0.3"
66
__title__ = "Commit Messages Linter"
77
__description__ = "simple git hooks scripts for a better git experience that enforces you to use the known commit messages conventions"

commit_linter/hooks/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def main():
3535
sys.exit(1)
3636
else:
3737
commitPrefix = ss.split(':')[0]
38-
commitPostfix = ss.split(':')[1]
38+
commitPostfix = ss.split(':', 1)[1]
3939
if '(' in commitPrefix:
4040
commitEmojie = emojies.get(commitPrefix.split('(')[0])
4141
newCommit = open(filename, 'w')

0 commit comments

Comments
 (0)