more relaxed version parsing: don't require hyphen before prerelease, to allow e.g. 1.2.3rc4
Merge pull request #7148 from stevengj/versionparse

more relaxed version parsing: don't require hyphen before prerelease