Skip to content

Commit

Permalink
fix: typos expression & occurred
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszbarwicki committed Jan 29, 2024
1 parent 4ed3ff9 commit 53498cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release-automation/internal/helm/chartyaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 53498cd

Please sign in to comment.