Skip to content

fix(PoweredByFider): preserve semver pre-release suffix in footer#1581

Open
hodyhq wants to merge 2 commits into
getfider:mainfrom
hodyhq:feat/fix-version-suffix-strip
Open

fix(PoweredByFider): preserve semver pre-release suffix in footer#1581
hodyhq wants to merge 2 commits into
getfider:mainfrom
hodyhq:feat/fix-version-suffix-strip

Conversation

@hodyhq

@hodyhq hodyhq commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

The footer's version display used version.split("-")[0] to strip the trailing commit hash, but that also strips every other --separated segment. Versions like v0.35.0-rc.1-abc1234 collapse to v0.35.0, hiding meaningful pre-release markers (rc, beta, alpha, custom build tags, etc.).

Switched to a regex that strips only a trailing commit-hash segment (7+ hex chars at the end of the string). All other suffixes survive:

v0.35.0-abc1234 -> v0.35.0 (unchanged behavior)
v0.35.0-rc.1-abc1234 -> v0.35.0-rc.1 (previously: v0.35.0)
v0.35.0-rc.1 -> v0.35.0-rc.1 (no hash to strip)
dev -> dev (unchanged behavior)

Closes the regression introduced for self-hosted builds whose VERSION arg uses semver pre-release tags.

Issue:

hodyhq and others added 2 commits June 22, 2026 16:45
The footer's version display used `version.split("-")[0]` to strip the
trailing commit hash, but that also strips every other `-`-separated
segment. Versions like `v0.35.0-rc.1-abc1234` collapse to `v0.35.0`,
hiding meaningful pre-release markers (rc, beta, alpha, custom build
tags, etc.).

Switched to a regex that strips only a trailing commit-hash segment
(7+ hex chars at the end of the string). All other suffixes survive:

  v0.35.0-abc1234        -> v0.35.0       (unchanged behavior)
  v0.35.0-rc.1-abc1234   -> v0.35.0-rc.1  (previously: v0.35.0)
  v0.35.0-rc.1           -> v0.35.0-rc.1  (no hash to strip)
  dev                    -> dev           (unchanged behavior)

Closes the regression introduced for self-hosted builds whose
VERSION arg uses semver pre-release tags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants