diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-05-18 13:12:42 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-05-18 13:12:42 +0200 |
commit | ee55fde5e569dfdd6c362cf464945d933aaf3a79 (patch) | |
tree | 16528ee7f29a997b9b59ea3e478dc77200ec7051 | |
parent | 2f9eac480fa66ee4186ac95d246a4fdf97b444a4 (diff) | |
download | hugo-ee55fde5e569dfdd6c362cf464945d933aaf3a79.tar.gz hugo-ee55fde5e569dfdd6c362cf464945d933aaf3a79.zip |
releaser: Fix version replacement
-rw-r--r-- | releaser/releaser.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index 10c50498b..ebc344e98 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -231,7 +231,7 @@ func (r *ReleaseHandler) bumpVersions(ver hugo.Version) error { } if err := r.replaceInFile("common/hugo/version_current.go", - `Minor:(\s*)(\d*),`, fmt.Sprintf(`Number:${1}%d,`, ver.Minor), + `Minor:(\s*)(\d*),`, fmt.Sprintf(`Minor:${1}%d,`, ver.Minor), `PatchLevel:(\s*)(\d*),`, fmt.Sprintf(`PatchLevel:${1}%d,`, ver.PatchLevel), `Suffix:(\s*)".*",`, fmt.Sprintf(`Suffix:${1}"%s",`, toDev)); err != nil { return err |