fixed issue #12 Suffix in mapping are also used as prefix

This commit is contained in:
euzu
2023-02-24 20:25:08 +01:00
parent 320dbb912d
commit be59f1017d
+1 -1
View File
@@ -163,7 +163,7 @@ impl MappingValueProcessor<'_> {
}
fn apply_prefix(&mut self, captures: &HashMap<&String, &str>, verbose: bool) {
for (key, value) in &self.mapper.suffix {
for (key, value) in &self.mapper.prefix {
if valid_property!(key.as_str(), MAPPER_PRE_SUFFIX_FIELDS) {
match self.apply_tags(value, captures, verbose) {
Some(prefix) => {