8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 710682c commit b22afdbCopy full SHA for b22afdb
dev-bin/release.sh
@@ -54,7 +54,7 @@ fi
54
changelog=$(cat HISTORY.rst)
55
56
regex='
57
-([0-9]+\.[0-9]+\.[0-9]+) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
+([0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
58
\+*
59
60
((.|
@@ -67,8 +67,8 @@ if [[ ! $changelog =~ $regex ]]; then
67
fi
68
69
version="${BASH_REMATCH[1]}"
70
-date="${BASH_REMATCH[2]}"
71
-notes="$(echo "${BASH_REMATCH[3]}" | sed -n -e '/^[0-9]\+\.[0-9]\+\.[0-9]\+/,$!p')"
+date="${BASH_REMATCH[3]}"
+notes="$(echo "${BASH_REMATCH[4]}" | sed -n -E '/^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9.]+)?/,$!p')"
72
73
if [[ "$date" != "$(date +"%Y-%m-%d")" ]]; then
74
echo "$date is not today!"
0 commit comments