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 1472123 commit 809403bCopy full SHA for 809403b
1 file changed
dev-bin/release.sh
@@ -7,7 +7,7 @@ phar='minfraud.phar'
7
changelog=$(cat CHANGELOG.md)
8
9
regex='
10
-([0-9]+\.[0-9]+\.[0-9]+) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
+([0-9]+\.[0-9]+\.[0-9]+(-[^ ]+)?) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
11
-*
12
13
((.|
@@ -20,8 +20,8 @@ if [[ ! $changelog =~ $regex ]]; then
20
fi
21
22
version="${BASH_REMATCH[1]}"
23
-date="${BASH_REMATCH[2]}"
24
-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]+/,$!p')"
25
26
if [[ "$date" != $(date +"%Y-%m-%d") ]]; then
27
echo "$date is not today!"
0 commit comments