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:
parent
06b4ebe51c
commit
ea8b5c257d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user