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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string