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 af3f1c8 commit c0d6e16Copy full SHA for c0d6e16
dev-bin/release.sh
@@ -54,7 +54,7 @@ fi
54
changelog=$(cat CHANGELOG.md)
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
)*)
@@ -66,8 +66,8 @@ if [[ ! $changelog =~ $regex ]]; then
66
fi
67
68
version="${BASH_REMATCH[1]}"
69
-date="${BASH_REMATCH[2]}"
70
-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')"
71
72
echo "$notes"
73
if [[ "$date" != "$(date +"%Y-%m-%d")" ]]; then
0 commit comments