backport of commit e734b0c1df (#16468)

Co-authored-by: R.B. Boyer <rb@hashicorp.com>
pull/16466/head^2
hc-github-team-consul-core 2023-02-28 12:57:45 -08:00 committed by GitHub
parent e91cc8f16e
commit d63d822cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ var (
//go:embed VERSION
fullVersion string
Version, VersionPrerelease, _ = strings.Cut(fullVersion, "-")
Version, VersionPrerelease, _ = strings.Cut(strings.TrimSpace(fullVersion), "-")
// https://semver.org/#spec-item-10
VersionMetadata = ""