mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-14 11:52:24 +02:00
fixed issue #12 Suffix in mapping are also used as prefix
This commit is contained in:
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user