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] (LANG-1226) StringUtils#normalizeSpace does not trim the string anymore
Date Sat, 21 May 2016 16:14:12 GMT

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

ASF GitHub Bot commented on LANG-1226:
--------------------------------------

GitHub user PascalSchumacher opened a pull request:

    https://github.com/apache/commons-lang/pull/150

    LANG-1226: StringUtils#normalizeSpace does not trim the string anymore

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/PascalSchumacher/commons-lang normalizeSpace_trim

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/150.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #150
    
----
commit b2b926ae5b8cb01e6ea415e5d040c10b9d4d206f
Author: pascalschumacher <pascalschumacher@gmx.net>
Date:   2016-05-21T16:13:03Z

    LANG-1226: StringUtils#normalizeSpace does not trim the string anymore

----


> StringUtils#normalizeSpace does not trim the string anymore
> -----------------------------------------------------------
>
>                 Key: LANG-1226
>                 URL: https://issues.apache.org/jira/browse/LANG-1226
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.4
>            Reporter: Pascal Schumacher
>
> These work with 3.3.2, but fail with 3.4:
> {code}
> assertEquals("b", StringUtils.normalizeSpace("\u0000b"));
> assertEquals("b", StringUtils.normalizeSpace("b\u0000"));
> {code}
> Java doc still says "... Additionally #trim(String)} removes control characters (char
&lt;= 32) from both ends of this String."



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message