Commit 9ca300b
committed
hook: Allow tag:/[tag]/{tag} prefixes in subject
This hook didn't detect cap'd subject when prefixed with
tag:/[tag]/{tag} eg.
tag(scope): Subject cap check failed
[tag] Subject cap check failed
{tag} Subject cap check failed
'@(+([[:alnum:]])?(\(+([[:alnum:]])\)):|\[+([[:alnum:][:punct:]])\]|\{+([[:alnum:][:punct:]])\}|squash\!)'
matches the prefixes and removes it from subject line before checking.1 parent 3736433 commit 9ca300b
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
0 commit comments