Skip to content

Commit 38d6bcd

Browse files
committed
feat: loosen up scope check, allow slash
1 parent 724b118 commit 38d6bcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conventional-pre-commit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ msg_file=$1
2020

2121
# join types with | to form regex ORs
2222
r_types="($(IFS='|'; echo "${types[*]}"))"
23-
# optional scope
24-
r_scope="(\([\w][\w -]+\))?"
23+
# optional (scope)
24+
r_scope="(\([\w \/-]+\))?"
2525
# optional breaking change indicator and colon delimiter
2626
r_delim='!?:'
2727
# subject line, body, footer

0 commit comments

Comments
 (0)