isPreReleaseVersion

Determines if a given valid SemVer version has a pre-release suffix.

@safe pure @nogc nothrow
bool
isPreReleaseVersion
(
scope string ver
)

Examples

assert(isPreReleaseVersion("1.0.0-alpha"));
assert(isPreReleaseVersion("1.0.0-alpha+b1"));
assert(isPreReleaseVersion("0.9.0-beta.1"));
assert(!isPreReleaseVersion("0.9.0"));
assert(!isPreReleaseVersion("0.9.0+b1"));

Meta