From 38d6bcde1c2400af38e32700f91848d9c2d531c6 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Sat, 5 Jun 2021 11:51:04 -0700 Subject: [PATCH] feat: loosen up scope check, allow slash --- conventional-pre-commit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conventional-pre-commit.sh b/conventional-pre-commit.sh index 2c67476..9b7855e 100644 --- a/conventional-pre-commit.sh +++ b/conventional-pre-commit.sh @@ -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