theory/pg-semver — pull request #6 by pvande (2012-11-20 02:54:51+00:00)
Title: Hyphenated prereleases.

This change adds support for an *optional* hyphen before a prerelease name.

This is far from ideal, but since the v1.0.0 spec has (at different times) declared both that prereleases must begin with an letter **and* that they must begin with a hyphen, it seems prudent to do some form of transitional change. Then again, backwards compatibility may not be a concern for this early version, so we may wish to skip the transition altogether.

In any event, this change implements the 80% case between both versions of the spec: most prerelease versions already begin with a letter, whether they contain the hyphen or not.