mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Lexer: An 8-digit string is now allowed to be considered a UUID
This commit is contained in:
parent
d91c2b4138
commit
92d37e5124
2 changed files with 7 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue