isPreReleaseVersion

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

@safe pure @nogc in
bool
isPreReleaseVersion
(
string 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