Also process the last variable in HTMLTemplate::process_template_expression().

This commit is contained in:
Relintai 2024-02-26 13:22:54 +01:00
parent dcd00dec81
commit 72c764f74c

View File

@ -394,6 +394,13 @@ method_name_search_done:
++i; ++i;
} }
// Also add the last entry
String current_variable_str = variables_str.substr_index(last_variable_end_index, variables_str_length).strip_edges();
if (!current_variable_str.empty()) {
variables.push_back(current_variable_str);
}
String ret; String ret;
// Finally let's just process the variables themselves, and generate the final output // Finally let's just process the variables themselves, and generate the final output