isPreReleaseVersion

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

@safe pure
bool
isPreReleaseVersion
(
string ver
)

Examples

assertTrue(isPreReleaseVersion("1.0.0-alpha"));
assertTrue(isPreReleaseVersion("1.0.0-alpha+b1"));
assertTrue(isPreReleaseVersion("0.9.0-beta.1"));
assertFalse(isPreReleaseVersion("0.9.0"));
assertFalse(isPreReleaseVersion("0.9.0+b1"));

Meta