Handle legacy OpenJDK URL layout

This commit is contained in:
copilot-swe-agent[bot]
2026-07-28 02:35:20 +00:00
committed by GitHub
parent 2c4a2dda70
commit cb48866ec3
3 changed files with 4 additions and 3 deletions

View File

@@ -126,7 +126,7 @@ export class OpenJdkDistribution extends JavaBase {
return Array.from(html.matchAll(pattern), match => {
const url = match[1];
const build = url.match(/\/(\d+)\/GPL\/openjdk-/)?.[1];
const build = url.match(/\/(\d+)\/(?:GPL\/)?openjdk-/)?.[1];
return {
version: this.toSemver(match[2], build),
url