From fb99f4e6f645a6768b4eab160a2056e61a9825f0 Mon Sep 17 00:00:00 2001
From: Adam Setch <adam.setch@outlook.com>
Date: Fri, 30 Dec 2022 11:35:09 +0100
Subject: [PATCH] fix(presets/workarounds): update java LTS allowed versions
 expression (#19605)

---
 lib/config/presets/internal/workarounds.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/config/presets/internal/workarounds.ts b/lib/config/presets/internal/workarounds.ts
index 29abe850c9..6c64a1a325 100644
--- a/lib/config/presets/internal/workarounds.ts
+++ b/lib/config/presets/internal/workarounds.ts
@@ -79,7 +79,7 @@ export const presets: Record<string, Preset> = {
     description: 'Limit Java runtime versions to LTS releases',
     packageRules: [
       {
-        allowedVersions: '/^(?:8|11|17|21|25|29)(?:\\.|$)/',
+        allowedVersions: '/^(?:8|11|17)(?:\\.|-|$)/',
         description:
           'Limit Java runtime versions to LTS releases. To receive all major releases add `workarounds:javaLTSVersions` to the `ignorePresets` array.',
         matchDatasources: ['docker', 'adoptium-java'],
-- 
GitLab