Fix index calculations for comments in HTMLParser.

This commit is contained in:
Relintai 2021-11-21 11:04:39 +01:00
parent f9dcd088d0
commit 4a947d39b0

View File

@ -163,7 +163,7 @@ void HTMLParserTag::process() {
comment_start_index = 4;
}
tag = data.substr(comment_start_index, comment_start_index - data.size() - 3);
tag = data.substr(comment_start_index, data.size() - comment_start_index - 3);
}
if (data.size() < 11) {