isPreReleaseVersion

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

@safe
bool
isPreReleaseVersion
pure @nogc
(
string ver
)
in { assert (isValidVersion(ver)); }

Examples

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

Meta