Github user ottobackwards commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/3183#discussion_r236830742
  
    --- Diff: 
nifi-commons/nifi-record-path/src/main/java/org/apache/nifi/record/path/util/RecordPathUtils.java
 ---
    @@ -39,4 +39,44 @@ public static String getFirstStringValue(final 
RecordPathSegment segment, final
     
             return stringValue;
         }
    +
    +    public static String unescapeBackslash(String value) {
    +        if (value == null || value.isEmpty()) {
    +            return value;
    +        }
    +        // need to escape characters after backslashes
    +        final StringBuilder sb = new StringBuilder();
    +        boolean lastCharIsBackslash = false;
    +        for (int i = 0; i < value.length(); i++) {
    +            final char c = value.charAt(i);
    +
    --- End diff --
    
    I am sorry, I meant if you could document the code.  That way someone who 
goes in can tell that you are escaping these specific characters per some 
specification


---

Reply via email to