Skip to content

Commit

Permalink
feat: loosen up scope check, allow slash
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jun 5, 2021
1 parent 724b118 commit 38d6bcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conventional-pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ msg_file=$1

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

0 comments on commit 38d6bcd

Please sign in to comment.