Lexer: Fixed bug that allowed unterminated quotes strings
This commit is contained in:
@@ -1290,7 +1290,8 @@ bool Lexer::readWord (
|
||||
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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user