Fix match spaces at the end of version line

main
Nicolas Arenas 2025-03-19 12:48:59 +01:00
parent 15d0b6a841
commit cacaa1ccef
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def call(String repoDir, String maintainerName = "Qindel Opengnsys Team", String
version_block_started=false
while IFS= read -r line || [[ -n "\$line" ]]; do
if [[ "\$line" =~ ^##\\ \\[(.*)\\]\\ -\\ ([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})\s*\$ ]]; then
if [[ "\$line" =~ ^##\\ \\[([0-9]+\\.[0-9]+\\.[0-9]+)\\]\\ -\\ ([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})\\s*\$ ]]; then
if [ "\$first_entry" = false ] && [ "\$version_block_started" = true ]; then
echo -e " -- \$MAINTAINER_NAME <\$MAINTAINER_EMAIL> \$(date -R)\\n" >> "\$OUTPUT_FILE"
fi