diff --git a/dist/index.js b/dist/index.js index 4e872ec8..33531379 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 4de56fb1..e50af36b 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/image-tag.test.ts b/src/model/image-tag.test.ts index 47adf65e..a9241f2e 100644 --- a/src/model/image-tag.test.ts +++ b/src/model/image-tag.test.ts @@ -27,7 +27,7 @@ describe('ImageTag', () => { expect(image.builderPlatform).toStrictEqual(testImageParameters.builderPlatform); }); - test.each(['2000.0.0f0', '2011.1.11f1'])('accepts %p version format', (version) => { + test.each(['2000.0.0f0', '2011.1.11f1', '6000.0.0f1'])('accepts %p version format', (version) => { expect( () => new ImageTag({ @@ -37,11 +37,6 @@ describe('ImageTag', () => { ).not.toThrow(); }); - test.each(['some version', ''])('throws for incorrect version %p', (editorVersion) => { - const { targetPlatform } = testImageParameters; - expect(() => new ImageTag({ editorVersion, targetPlatform })).toThrow(); - }); - test.each(['nonExisting'])('throws for unsupported target %p', (targetPlatform) => { expect(() => new ImageTag({ targetPlatform })).toThrow(); }); diff --git a/src/model/image-tag.ts b/src/model/image-tag.ts index e32ccbdd..06f68d79 100644 --- a/src/model/image-tag.ts +++ b/src/model/image-tag.ts @@ -20,10 +20,6 @@ class ImageTag { providerStrategy, } = imageProperties; - if (!ImageTag.versionPattern.test(editorVersion)) { - throw new Error(`Invalid version "${editorVersion}".`); - } - // Todo we might as well skip this class for customImage. // Either this.customImage = customImage; @@ -41,10 +37,6 @@ class ImageTag { this.imageRollingVersion = Number(containerRegistryImageVersion); // Will automatically roll to the latest non-breaking version. } - static get versionPattern(): RegExp { - return /^(20\d{2}\.\d\.\w{3,4}|3)$/; - } - static get targetPlatformSuffixes() { return { generic: '',