From ee55fde5e569dfdd6c362cf464945d933aaf3a79 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Wed, 18 May 2022 13:12:42 +0200 Subject: releaser: Fix version replacement --- releaser/releaser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3