Support pre-release versions in getVersionSize().