Extract chart version ignoring numbers in chart name (#2226)

Signed-off-by: Pavel Ashevskiy <pavel.ashevskiy@ifellow.ru>

Co-authored-by: Pavel Ashevskiy <pavel.ashevskiy@ifellow.ru>
This commit is contained in:
pashevskiiandPavel Ashevskiy authored and GitHub committed 2021-02-25 18:09:07 +03:00
1 parent 1470103fd4
commit 3acbdcfd60
1 file changed
+1 -1
@@ -187,7 +187,7 @@ export class HelmRelease implements ItemObject {
}
getVersion() {
const versions = this.chart.match(/(v?\d+)[^-].*$/);
const versions = this.chart.match(/(?<=-)(v?\d+)[^-].*$/);
if (versions) {
return versions[0];