Skip to content

Commit

Permalink
Merge pull request #66 from Songmu/fix-bump
Browse files Browse the repository at this point in the history
adjust bumping version file behavior
  • Loading branch information
Songmu authored Aug 27, 2022
2 parents ba66636 + afe5093 commit ba74552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versionfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (fl *fileList) list() []string {
}

func bumpVersionFile(fpath string, from, to *semv) error {
verReg, err := regexp.Compile(versionRegBase + regexp.QuoteMeta(from.Naked()))
verReg, err := regexp.Compile(`(v|\b)` + regexp.QuoteMeta(from.Naked()) + `\b`)
if err != nil {
return err
}
Expand Down

0 comments on commit ba74552

Please sign in to comment.