Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1226

StringUtils#normalizeSpace does not trim the string anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4
    • 3.5
    • lang.*
    • None

    Description

      These work with 3.3.2, but fail with 3.4:

      assertEquals("b", StringUtils.normalizeSpace("\u0000b"));
      assertEquals("b", StringUtils.normalizeSpace("b\u0000"));
      

      Java doc still says "... Additionally #trim(String)} removes control characters (char <= 32) from both ends of this String."

      Attachments

        Issue Links

          Activity

            People

              pascalschumacher Pascal Schumacher
              pascalschumacher Pascal Schumacher
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: