commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HiuKwok <...@git.apache.org>
Subject [GitHub] commons-lang pull request #340: [LANG-1406] StringIndexOutOfBoundsException ...
Date Sun, 02 Sep 2018 05:31:16 GMT
Github user HiuKwok commented on a diff in the pull request:

    https://github.com/apache/commons-lang/pull/340#discussion_r214529178
  
    --- Diff: src/main/java/org/apache/commons/lang3/StringUtils.java ---
    @@ -5596,8 +5596,8 @@ private static String replace(final String text, String searchString,
final Stri
              }
              String searchText = text;
              if (ignoreCase) {
    -             searchText = text.toLowerCase();
    -             searchString = searchString.toLowerCase();
    +             searchText = text.toUpperCase();
    +             searchString = searchString.toUpperCase();
    --- End diff --
    
    Hi all, Just a quick update finally I kind of figure the way out of this problem,
    while I am trying to make it happen (the implementation).
    But the concept is mainly Normalize incoming word at the beginning of the method call
by ```Normalizer.normalize()```


---

Mime
View raw message