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 Jari Kolehmainen committed 2021-03-03 16:51:42 +02:00
1 parent 61a8b3e578
commit 8f103c3f20
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];