fix regression that caused inlined ifs to be displayed as choices

This commit is contained in:
yuni 2024-04-14 21:14:26 +02:00
parent d28e56a1aa
commit 03d2809295

View file

@ -269,6 +269,9 @@ impl ChatDB {
else if non_choice_tokens.contains(&key.as_str()) { else if non_choice_tokens.contains(&key.as_str()) {
// skip over the other non-choice tokens // skip over the other non-choice tokens
} }
else if key.as_str().starts_with(TOKEN_IF_INLINE) {
// skip over inlined if-statements
}
else { else {
result.choice_text = Some(key.to_string()); result.choice_text = Some(key.to_string());
} }