fix(go): support semver dot-separated prerelease suffixes in version-go regex by noahdietz · Pull Request #2803 · googleapis/release-please (original) (raw)

If the version value in internal/verison.go had a SemVer prerelease suffix with dot separated segments (https://semver.org/#spec-item-9) e.g. 1.2.3-rc.1, the version updater wouldn't match the string and wouldn't update it with the new version.

Discovered this while testing release-please for previews (googleapis/librarian#6115 (comment)), where we expect to use dot-separated prerelease segments.