File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1616
1717VERSION=${VERSION// develop/ dev}
1818
19- # Example for the regex below:
20- # dev.1.0.0.0
21- # dev-1.0.0-0
22- # dev.1.0.0-0
23- # dev-1.0.0.0
2419if [[ $VERSION =~ ^dev[.-]([0-9]+)[.-]([0-9]+)[.-]([0-9]+)[.-]([0-9]+)$ ]]; then
20+ # Example for the regex above:
21+ # dev.1.0.0.0
22+ # dev-1.0.0-0
23+ # dev.1.0.0-0
24+ # dev-1.0.0.0
2525 VERSION=" ${BASH_REMATCH[1]} .${BASH_REMATCH[2]} .${BASH_REMATCH[3]} -beta.${BASH_REMATCH[4]} "
2626elif [[ $VERSION =~ ^([0-9]+)[.-]([0-9]+)[.-]([0-9]+)[.-]dev[.-]([0-9]+)$ ]]; then
27+ # Example for the regex above:
28+ # 1.0.0.dev.0
29+ # 1.0.0.dev-0
30+ # 1.0.0-dev-0
31+ # 1.0.0-dev.0
2732 VERSION=" ${BASH_REMATCH[1]} .${BASH_REMATCH[2]} .${BASH_REMATCH[3]} -beta.${BASH_REMATCH[4]} "
2833elif [[ $VERSION == dev-* ]]; then
2934 _temp_part=${VERSION# dev-}
You can’t perform that action at this time.
0 commit comments