From 02f22ec9b9da93fc83695f04d7b0b6e0adb485ee Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Fri, 18 Oct 2024 12:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20rsshub=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- .github/workflows/renovate-app-version.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/renovate-app-version.sh b/.github/workflows/renovate-app-version.sh index 7d3d5a87..96593d9c 100644 --- a/.github/workflows/renovate-app-version.sh +++ b/.github/workflows/renovate-app-version.sh @@ -28,13 +28,13 @@ process_image() { echo "Trimmed version: $trimmed_version" # Remove any suffixes (like -ffmpeg) for versioning purposes - cleaned_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,4}') + cleaned_version=$(echo "$trimmed_version" | grep -oE '^[0-9]+(\.[0-9]+){0,3}$') echo "Cleaned version: $cleaned_version" # Handle special versions with dates and other formats if [[ -z "$cleaned_version" ]]; then - cleaned_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}') + cleaned_version=$(echo "$trimmed_version" | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}$') fi echo "Final version: $cleaned_version"