[
https://issues.apache.org/jira/browse/NIFI-14672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-14672.
-----------------------------------
Fix Version/s: 2.5.0
Resolution: Fixed
> Support duplicate mapped values in replaceByPattern
> ---------------------------------------------------
>
> Key: NIFI-14672
> URL: https://issues.apache.org/jira/browse/NIFI-14672
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Alaksiej Ščarbaty
> Assignee: Alaksiej Ščarbaty
> Priority: Major
> Fix For: 2.5.0
>
>
> Currently each {{mappedTo}} value in `replaceByPattern` must be unique. What
> it means, is that a pattern like this {{a:res,b:res}} won't map both {{a and
> b}} to {{{}res{}}}.
> The function should support mapping to the same value multiple times.
> If {{{}str = a{}}}, then {{${str:replaceByPattern('a:res,b:res')}}} should
> return {{res}}
> If {{{}str = b{}}}, then {{${str:replaceByPattern('a:res,b:res')}}} should
> return {{res}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)