commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TEXT-88) WordUtils.capitalizeFully behaves in a counterintuitive manner with empty delimiter array.
Date Tue, 13 Jun 2017 16:06:00 GMT

    [ https://issues.apache.org/jira/browse/TEXT-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048065#comment-16048065
] 

ASF GitHub Bot commented on TEXT-88:
------------------------------------

Github user arunvinudss commented on the issue:

    https://github.com/apache/commons-text/pull/48
  
    @ameyjadiye The agreed upon fix as of now should be:
    
    WordUtils.capitalizeFully("i am fine", new char[]{})  --> I am fine
    
    We shouldn't take space as the delimiter as the user explicitly passes an empty array
for delimiter . Anyways we are still discussing on that and I guess you can make the required
changes once we have an agreement on this . 
    



> WordUtils.capitalizeFully behaves in a counterintuitive manner with empty delimiter array.
> ------------------------------------------------------------------------------------------
>
>                 Key: TEXT-88
>                 URL: https://issues.apache.org/jira/browse/TEXT-88
>             Project: Commons Text
>          Issue Type: Bug
>            Reporter: Rob Tompkins
>
> As discussed in TEXT-85, it seems that 
> {code:java}
> WordUtils.capitalizeFully("i am fine", new char[]{}) // --> i am fine
> {code}
> Both Sebb and Arun think that this is odd and that the letter "i" should have been capitalized
resulting in the output {{I am fine}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message