BPackageInfo parser: Allow '.' in micro version component

Otherwise we'd have to encode e.g. "cvs-1.12.13.1" differently.
This commit is contained in:
Ingo Weinhold 2013-04-18 18:43:47 +02:00
parent 06b4ebe51c
commit ea8b5c257d

View File

@ -487,7 +487,7 @@ BPackageInfo::Parser::_ParseVersionValue(Token& word, BPackageVersion* value,
word.text.CopyInto(micro, secondDotPos + 1, word.text.Length());
int32 errorPos;
if (!_IsAlphaNumUnderscore(micro, "", &errorPos)) {
if (!_IsAlphaNumUnderscore(micro, ".", &errorPos)) {
throw ParseError("invalid character in micro version string",
word.pos + secondDotPos + 1 + errorPos);
}