[
https://issues.apache.org/jira/browse/NIFI-15228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18039906#comment-18039906
]
ASF subversion and git services commented on NIFI-15228:
--------------------------------------------------------
Commit 4076eaafb0b1a19ebcf7dde030d0f4c1d9bda548 in nifi's branch
refs/heads/main from dan-s1
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4076eaafb0 ]
NIFI-15228 Corrected expected result of EL repeat function when either the
exact number or the max number to repeat is the string's length.
Closes #10552
Signed-off-by: Mike Moser <[email protected]>
> Documentation of EL Operation repeat is wrong (section examples)
> ----------------------------------------------------------------
>
> Key: NIFI-15228
> URL: https://issues.apache.org/jira/browse/NIFI-15228
> Project: Apache NiFi
> Issue Type: Bug
> Components: Documentation & Website
> Affects Versions: 2.6.0
> Environment: Any
> Reporter: Joerg
> Assignee: Daniel Stieglitz
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> The documentation of EL operation "repeat" section Examples - last Example -
> is wrong.
> [https://nifi.apache.org/nifi-docs/expression-language-guide.html#repeat]
> Is:
> |{{${str:repeat( ${str:length()} )}}}|{{abc}} or {{abcabc}} or {{abcabcabc}}
> (at random)|
> Should be a) or b).
> a)
> |{{${str:repeat(1, ${str:length()} )}}}|{{abc}} or {{abcabc}} or
> {{abcabcabc}} (at random)|
>
> b)
> |{{${str:repeat( ${str:length()} )}}}|{{{}{}}}{{{}abcabcabc{}}}|
--
This message was sent by Atlassian Jira
(v8.20.10#820010)