You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/11/02 17:05:57 UTC
[GitHub] [commons-lang] jordanjenkins opened a new pull request #476:
StringUtils.abbreviate handles empty abbrevMarker
jordanjenkins opened a new pull request #476: StringUtils.abbreviate handles empty abbrevMarker
URL: https://github.com/apache/commons-lang/pull/476
StringUtils.abbreviate would not abbreviate properly when an empty
String was passed to abbrevMarker or abbrevMarker is null
Expected behaviour:
abbreviate("much too long text", "", 13).equals("much too long")
Actual behaviour:
abbreviate("much too long text", "", 13).equals("much too long text")
Behaves the same when abbrevMarker is null.
Added if statements to handle empty and null abbrevMarker
Passed all tests
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services