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:
@@ -487,7 +487,7 @@ BPackageInfo::Parser::_ParseVersionValue(Token& word, BPackageVersion* value,
|
|||||||
word.text.CopyInto(micro, secondDotPos + 1, word.text.Length());
|
word.text.CopyInto(micro, secondDotPos + 1, word.text.Length());
|
||||||
|
|
||||||
int32 errorPos;
|
int32 errorPos;
|
||||||
if (!_IsAlphaNumUnderscore(micro, "", &errorPos)) {
|
if (!_IsAlphaNumUnderscore(micro, ".", &errorPos)) {
|
||||||
throw ParseError("invalid character in micro version string",
|
throw ParseError("invalid character in micro version string",
|
||||||
word.pos + secondDotPos + 1 + errorPos);
|
word.pos + secondDotPos + 1 + errorPos);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user