Repository navigation
docs: clarify __split comma escaping and empty delimiter behavior - #6913
Open
QAInsights wants to merge 1 commit into
Open
QAInsights wants to merge 1 commit into
QAInsights wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Clarifies the
__splitfunction parameter documentation inxdocs/usermanual/functions.xml:String to split: explained that literal strings containing commas must escape each comma with\,(e.g.${__split(a\,b\,c,VAR)}) because unescaped commas separate function arguments, whereas values stored in a JMeter variable can be passed directly (e.g.${__split(${VAR},VAR)}) without escaping commas.Delimiter: noted that an omitted or empty delimiter defaults to,, matchingSplitFunction.java.Motivation and Context
Fixes #4524. Users calling
__splitwith the default comma delimiter were unsure whether commas in the input string needed to be escaped when passed directly versus via a JMeter variable, and the documentation did not mention that an empty delimiter also falls back to,.How Has This Been Tested?
src/functions/src/main/java/org/apache/jmeter/functions/SplitFunction.java../gradlew --quiet :src:dist:previewSite -x :src:dist:javadocAggregate autostyleCheck raton Windows (all passed with exit code 0).src/dist/build/site/usermanual/functions.htmloutput.Screenshots (if appropriate):
N/A (documentation-only changes)
Types of changes
Checklist: