src/jdk/nashorn/internal/runtime/regexp/joni/SearchAlgorithm.java

Print this page

        

@@ -166,11 +166,11 @@
 
         private boolean lowerCaseMatch(char[] t, int tP, int tEnd,
                                        char[] chars, int p, int end) {
 
             while (tP < tEnd) {
-                if (t[tP++] != Character.toLowerCase(chars[p++])) return false;
+                if (t[tP++] != EncodingHelper.toLowerCase(chars[p++])) return false;
             }
             return true;
         }
     }