mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Lexer: Fixed bug that allowed unterminated quotes strings
This commit is contained in:
parent
b841d0c403
commit
b7438edfd5
1 changed files with 2 additions and 1 deletions
|
@ -1290,7 +1290,8 @@ bool Lexer::readWord (
|
||||||
word += utf8_character (utf8_next_char (text, cursor));
|
word += utf8_character (utf8_next_char (text, cursor));
|
||||||
}
|
}
|
||||||
|
|
||||||
return word.length () > 0 ? true : false;
|
// Word has to at least contain the quotes.
|
||||||
|
return word.length () >= 2 ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue