Andy LoPresto created NIFI-1938:
-----------------------------------

             Summary: Investigate renaming replace expression language method
                 Key: NIFI-1938
                 URL: https://issues.apache.org/jira/browse/NIFI-1938
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
    Affects Versions: 0.6.1
            Reporter: Andy LoPresto
            Priority: Minor
             Fix For: 1.0.0


As explored in NIFI-1919, the expression language string replacement methods 
could be more clearly named to differentiate their actions -- the difference 
between {{replace}} and {{replaceAll}} is not their frequency of operation, but 
rather that {{replace}} accepts only literal strings, while {{replaceAll}} 
interprets the provided search pattern as a regular expression. 

Related, the {{ReplaceEvaluator}}, {{ReplaceAllEvaluator}}, and new 
{{ReplaceFirstEvaluator}} classes differ only by one line for each respective 
operation. It may be possible to refactor this to remove duplicate code. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to