Skip to content

sanitizePrereleaseId

sanitizePrereleaseId(raw): string

Defined in: packages/simply-cicd-core/src/build/packageVersionArtifact.ts:48

Reduce a git tag suffix to something semver accepts as a prerelease identifier.

Semver’s prerelease alphabet is [0-9A-Za-z-]; a branch name’s / and . are the common offenders, so each run of anything else collapses to a single hyphen.

string

string