You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by HiuKwok <gi...@git.apache.org> on 2018/09/02 05:31:16 UTC

[GitHub] commons-lang pull request #340: [LANG-1406] StringIndexOutOfBoundsException ...

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()```


---