Lexer: An 8-digit string is now allowed to be considered a UUID

This commit is contained in:
Paul Beckingham 2015-08-07 09:21:58 -04:00
parent d91c2b4138
commit 92d37e5124
2 changed files with 7 additions and 11 deletions

View file

@ -540,12 +540,9 @@ bool Lexer::isUUID (std::string& token, Lexer::Type& type, bool endBoundary)
isSingleCharOperator (_text[marker + i])))
{
token = _text.substr (_cursor, i);
if (! isAllDigits (token))
{
type = Lexer::Type::uuid;
_cursor += i;
return true;
}
type = Lexer::Type::uuid;
_cursor += i;
return true;
}
return false;