Skip to content

Husky: Commit msg format bug when there is one or more space in the brackets (ex: fix(some thing): blabla) #1

@DamChtlv

Description

@DamChtlv

Issue

It had 2 :, one before & one after, like that:

Fix:(some thing): blabla...

# if there are brackets in the commit message, remove the colon
brackets_regex="\(([^()]*)\)"
for s in ${result[@]}; do
if [[ ${s} =~ $brackets_regex ]]; then
result=$(echo "$result" | sed "s/:(/(/")
fi
done

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions