[Issue-71] Suffix and Prefix Wrongly Applied in Inputs

This commit is contained in:
euzu
2024-08-15 16:36:15 +02:00
parent 14fbe054b8
commit feec32a55e
+2 -2
View File
@@ -10,9 +10,9 @@ fn create_affix_processor(affix: &InputAffix, is_prefix: bool) -> AffixProcessor
let header = &mut channel.header.borrow_mut();
let value = if let Some(field_value) = header.get_field(affix.field.as_str()) {
if is_prefix {
format!("{}{}", field_value.as_str(), &affix.value)
} else {
format!("{}{}", &affix.value, field_value.as_str())
} else {
format!("{}{}", field_value.as_str(), &affix.value)
}
} else {
String::from(&affix.value)