Skip to content

Commit

Permalink
chore: update semver validation script
Browse files Browse the repository at this point in the history
  • Loading branch information
sreya committed Feb 6, 2024
1 parent 88219a2 commit ac86d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/semver.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

VERSION="${1}"
rx='^([0-9]+\.){2}(\*|[0-9]+)$'
rx='^([0-9]+\.){2}((\*|[0-9]+)|([0-9]+-rc\.[0-9]+))$'
if [[ $VERSION =~ $rx ]]; then
exit 0
else
Expand Down

0 comments on commit ac86d08

Please sign in to comment.