diff --git a/versionfile.go b/versionfile.go index 02bfe3c..30d29c9 100644 --- a/versionfile.go +++ b/versionfile.go @@ -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 }