We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e4229 commit 4330523Copy full SHA for 4330523
commit_msg_regex_hook/commit_msg_regex_hook.py
@@ -83,7 +83,7 @@ def process_pattern(pattern_str: str) -> Pattern:
83
"""
84
try:
85
print(f"Incoming Pattern: {pattern_str}")
86
- pattern = re.compile(pattern_str)
+ pattern = re.compile(pattern_str[1:-1])
87
except Exception as e:
88
raise argparse.ArgumentTypeError(
89
f"'{pattern_str}' is not a valid regex pattern\n {e}"
setup.cfg
@@ -1,6 +1,6 @@
1
[metadata]
2
name = commit-msg-regex-hook
3
-version = v0.0.7
+version = v0.0.8
4
author = David Tippett
5
description = Checks if commit message matches supplied regex
6
long_description = file: README.md
0 commit comments