$modifierRegex
$modifierRegex : string
Regex to match pre-release data (sort of).
Due to backwards compatibility:
- Instead of enforcing hyphen, an underscore, dot or nothing at all are also accepted.
- Only stabilities as recognized by Composer are allowed to precede a numerical identifier.
-
Numerical-only pre-release identifiers are not supported, see tests.
|--------------|
[major].[minor].[patch] -[pre-release] +[build-metadata]