Skip to content

Commit 1a7939b

Browse files
[CUTL-90] ⬆️ (Validate Commit Message) Upgrade to 1.0.5
1 parent ccf2988 commit 1a7939b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validate_commit_message.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
3-
# v1.0.4-husky
3+
# v1.0.5-husky
44
import os
55
import re
66
import sys
77

88

99
def isCommitMessageValid(commit_message):
10-
pattern = r"\[....-\d+\] [✨,🚑,🔄,📚,💄,📝,🏗,☁,🤝,🎨,🔨,🧹,☔,🔥,👕,⬆,⬇,💎,⚙️,🏦,🌱,🚜,💚,🚧,🍒,🎉,🏎,🚀,🐎,🐞,🔖,🔬,🔈,🔇,🐳,🔬,🔒,⏩,⏪,♿,🌐,⚡,💡,🐧,🍎,🏁,🥚,🎡,🐘,🐬]+ \([a-zA-Z\s\-,/]+\) .+"
10+
pattern = r"\[....*-\d+\] [✨,🚑,🔄,📚,💄,📝,🏗,☁,☁️,🤝,🎨,🔨,🧹,☔,☔️,🔥,👕,⬆,⬆️,⬇,⬇️,💎,⚙️,🏦,🌱,🚜,💚,🚧,🍒,🎉,🏎,🚀,🐎,🐞,🔖,🔬,🔈,🔇,🐳,🔬,🔒,⏩,⏪,♿,♿️,🌐,⚡,⚡️,💡,🐧,🍎,🏁,🥚,🎡,🐘,🐬,🍃]+ \([a-zA-Z\s\-,/]+\) .+"
1111
m = re.match(pattern, commit_message)
1212
return m is not None
1313

0 commit comments

Comments
 (0)