morrySnow commented on code in PR #49061:
URL: https://github.com/apache/doris/pull/49061#discussion_r1994685613


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java:
##########
@@ -406,12 +406,8 @@ public static Expression characterLength(StringLikeLiteral 
first) {
         return new IntegerLiteral(first.getValue().length());
     }
 
-    private static boolean isSeparator(char c) {
-        if (".$|()[{^?*+\\".indexOf(c) == -1) {
-            return false;
-        } else {
-            return true;
-        }
+    private static boolean isAlphabetic(char c) {
+        return String.valueOf(c).matches("[A-Za-z]");

Review Comment:
   should consider such as `ÀÇ`, u should use `\P{L}`.
   refer: https://www.regular-expressions.info/unicode.html#prop
   notice, BE has bug when process UTF-8 in some functions, so should not 
follow BE's behavior



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to