Skip to content

Commit 43c8836

Browse files
committed
renew version detection
1 parent a5e2f8d commit 43c8836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ getNextTagFromGivenPath()
3434
local position=${2:-2}
3535

3636
local currentTag=$(getCurrentTagFromGivenPath "$1")
37-
local searchReg="([v]?)([0-9]+)\.([0-9]+)\.([0-9]+)"
37+
local searchReg="^([v]?)([0-9]+)\.([0-9]+)\.([0-9]+)"
3838

3939
if ! [[ "$currentTag" =~ $searchReg ]]; then
4040
>&2 echo "Unable to parse the current version \"$currentTag\"."

0 commit comments

Comments
 (0)