From 4d7006d7a63001134bc558da7cfdd45783038c17 Mon Sep 17 00:00:00 2001 From: Clay Rosenthal Date: Tue, 4 Mar 2025 17:38:02 -0800 Subject: [PATCH] fix: Allowing helm oci versions with v prefix Signed-off-by: Clay Rosenthal --- src/import/helm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/import/helm.ts b/src/import/helm.ts index 8fd15e4d3..85e6640a8 100644 --- a/src/import/helm.ts +++ b/src/import/helm.ts @@ -93,7 +93,7 @@ function extractHelmChartDetails(url: string) { if (url.startsWith('helm:oci://')) { // URL: helm:oci://registry-1.docker.io/bitnamicharts/wordpress@17.1.17 - const helmRegex = /^helm:(oci:\/\/[A-Za-z0-9_.-:\-]+)\@([0-9]+)\.([0-9]+)\.([A-Za-z0-9-+]+)$/; + const helmRegex = /^helm:(oci:\/\/[A-Za-z0-9_.-:\-]+)\@([0-9]+)\.([v0-9]+)\.([A-Za-z0-9-+]+)$/; const helmDetails = helmRegex.exec(url); if (!helmDetails) { @@ -186,4 +186,4 @@ function pullHelmRepo(chartUrl: string, chartName: string, chartVersion: string) */ function cleanup(tmpDir: string) { fs.rmSync(tmpDir, { recursive: true }); -} \ No newline at end of file +}