Skip to content

Commit

Permalink
fix: include _ and . as valid characters in slug regex (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRibeiro authored Aug 28, 2023
1 parent 905c4d0 commit 7f6ef05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ getSlug() {
PROJECT_SLUG="${BASH_REMATCH[1]}"
fi
else
REGEXP="com\/([A-Za-z]+\/[A-Za-z0-9-]+\/[A-Za-z0-9-]+)\/"
REGEXP="com\/([A-Za-z]+\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+)\/"
if [[ $CIRCLE_BUILD_URL =~ $REGEXP ]]; then
PROJECT_SLUG="${BASH_REMATCH[1]}"
fi
Expand Down

0 comments on commit 7f6ef05

Please sign in to comment.