Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified data processor functional param splitting logic #307

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

mshangle1
Copy link
Contributor

Reference issue: #305

When providing parameters to function mapping (ie: $F{sum:1,2}), if the parameter includes a : character, the rest of the parameter is cut off from being included in the arguments.

In dataProcessor.js line 104, the FunctionName:param1,param2 string is being split up by the : character for all instances of the character, causing arguments which include a : to be split and not passed to the function when it is filtered out on line 106.

I modified the behavior by changing the refValue.split(':') on line 104 to use a regex expression to only split by the first instance of the : character like so refValue.split(/:(.*)/) so params including the ':' character can be passed to functions

@ASaiAnudeep ASaiAnudeep merged commit 9ace745 into pactumjs:master Jan 13, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants