Skip to content

Commit

Permalink
chore: update semver validation script (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreya committed Feb 6, 2024
1 parent ae84e6f commit 4ffaa0e
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 4ffaa0e

Please sign in to comment.