Fix: crash caused by keywords with empty parameter matches (partial fix for #33)

This commit is contained in:
Twan van Laarhoven
2020-05-12 14:45:54 +02:00
parent 42b5b10074
commit e36dc69ca6
+1 -1
View File
@@ -580,7 +580,7 @@ bool KeywordDatabase::tryExpand(const Keyword& kw,
if ((submatch % 2) == 0) {
// parameter
KeywordParam& kwp = *kw.parameters[(submatch - 2) / 2];
String param = untagged.substr(part_start_u, part_len_u); // untagged version
String param = match.str((int)submatch); // untagged version
// strip separator_before
String separator_before, separator_after;
Regex::Results sep_match;