diff --git a/substreams/release.sh b/substreams/release.sh index 7c55b91..0f1c5be 100755 --- a/substreams/release.sh +++ b/substreams/release.sh @@ -10,7 +10,7 @@ current_tag=$(git describe --tags --exact-match HEAD 2>/dev/null) if [ -n "$current_tag" ]; then # If the HEAD is at a tag, extract the prefix and version - if [[ $current_tag =~ ^([a-zA-Z-]*-)?([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then + if [[ $current_tag =~ ^([a-zA-Z0-9-]*-)?([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then # Prefix without the trailing hyphen (if any) package="${BASH_REMATCH[1]%?}" # Semantic version