Skip to content

Fix splitCommaSeparated behavior and add unit tests#962

Open
YCharanGowda wants to merge 4 commits intoapache:mainfrom
YCharanGowda:fix-stringutils-split
Open

Fix splitCommaSeparated behavior and add unit tests#962
YCharanGowda wants to merge 4 commits intoapache:mainfrom
YCharanGowda:fix-stringutils-split

Conversation

@YCharanGowda
Copy link

  • Fixed splitCommaSeparated to correctly handle inputs like ",,,"
  • Added unit tests for edge cases and normal cases
  • Ensured consistent behavior for empty elements

This change improves robustness of StringUtils without affecting existing logic.

Copy link
Contributor

@markt-asf markt-asf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You haven't explained what problem this PR is trying to solve.

What is the correct behaviour for an input of ",,," and on what are you basing that assertion?

Where is the behaviour currently inconsistent? And how does it impact Tomcat?

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