Add regression test for hyphen separator in distribution prefix

This commit is contained in:
copilot-swe-agent[bot] 2026-07-07 19:21:57 +00:00 committed by GitHub
parent bf1fdd3036
commit 3849c25203
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -247,6 +247,7 @@ describe('getVersionFromFileContent', () => {
describe('.java-version', () => {
it.each([
['temurin-21.0.5', '21.0.5', 'temurin'],
['temurin-17', '17', 'temurin'], // hyphen separator is not captured into the distribution
['temurin-21.0.5+11.0.LTS', '21.0.5+11.0.LTS', 'temurin'],
['zulu64-8.0.202', '8.0.202', 'zulu'],
['temurin64-17', '17', 'temurin'],