Skip to content

Commit 8dc4557

Browse files
committed
fix: Allowing helm oci versions with v prefix
1 parent 4230c76 commit 8dc4557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/import/helm.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function extractHelmChartDetails(url: string) {
9393

9494
if (url.startsWith('helm:oci://')) {
9595
// URL: helm:oci://registry-1.docker.io/bitnamicharts/[email protected]
96-
const helmRegex = /^helm:(oci:\/\/[A-Za-z0-9_.-:\-]+)\@([0-9]+)\.([0-9]+)\.([A-Za-z0-9-+]+)$/;
96+
const helmRegex = /^helm:(oci:\/\/[A-Za-z0-9_.-:\-]+)\@([0-9]+)\.([v0-9]+)\.([A-Za-z0-9-+]+)$/;
9797
const helmDetails = helmRegex.exec(url);
9898

9999
if (!helmDetails) {
@@ -186,4 +186,4 @@ function pullHelmRepo(chartUrl: string, chartName: string, chartVersion: string)
186186
*/
187187
function cleanup(tmpDir: string) {
188188
fs.rmSync(tmpDir, { recursive: true });
189-
}
189+
}

0 commit comments

Comments
 (0)