SDL: fnsince.pl: Fix script once bump to 3.1.10 exposed a bug.

From e9f7f11f1ddd7c01ccec649d3f3a61d553d1ffd1 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 17 Jan 2025 18:39:12 -0500
Subject: [PATCH] fnsince.pl: Fix script once bump to 3.1.10 exposed a bug.

---
 build-scripts/fnsince.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-scripts/fnsince.pl b/build-scripts/fnsince.pl
index 8e8ec48e61ab0..e815dfd5eca35 100755
--- a/build-scripts/fnsince.pl
+++ b/build-scripts/fnsince.pl
@@ -90,7 +90,7 @@
     my $tag = $fulltags{$release};
     my $blobname = "$tag:src/dynapi/SDL_dynapi_overrides.h";
 
-    if ($release =~ /\A3\.(0\.\d+|1\.[0123])/) {  # make everything up to the first SDL3 prerelease look like 3.1.3 (ABI lock version).
+    if ($release =~ /\A3\.(0\.\d+|1\.[0123]\Z)/) {  # make everything up to the first SDL3 prerelease look like 3.1.3 (ABI lock version).
         $release = '3.1.3';
     }