From 53498cdc3bd549a6acdeb7be3d94511e9f668dad Mon Sep 17 00:00:00 2001 From: Tomasz Barwicki Date: Mon, 29 Jan 2024 14:01:49 +0100 Subject: [PATCH] fix: typos expression & occurred --- release-automation/internal/helm/chartyaml.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release-automation/internal/helm/chartyaml.go b/release-automation/internal/helm/chartyaml.go index f9b5a591..b7dbe57a 100644 --- a/release-automation/internal/helm/chartyaml.go +++ b/release-automation/internal/helm/chartyaml.go @@ -65,7 +65,7 @@ func ChartYamlFromFile(ymlfile string) *Chartyaml { func (c *Chartyaml) IsVersionValid() bool { /* - Below regular expresion is used to verify version string according to Semantic Versioning schema (https://semver.org). + Below regular expression is used to verify version string according to Semantic Versioning schema (https://semver.org). Following examples match: - "1.2.3" - "1.0.0-alpha" @@ -78,7 +78,7 @@ func (c *Chartyaml) IsVersionValid() bool { match, err := regexp.MatchString(regexPattern, c.Version) if err != nil { - fmt.Println("Error occured when validating semantic version.") + fmt.Println("Error occurred when validating semantic version.") return false } return match