From ae1a9e3870c808baaa187bdcf306955f210627af Mon Sep 17 00:00:00 2001 From: wangshang Date: Wed, 22 Jul 2020 14:24:10 +0800 Subject: [PATCH] fix regex of character + --- PublicComponent/src/main/java/com/arialyy/aria/orm/SqlUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PublicComponent/src/main/java/com/arialyy/aria/orm/SqlUtil.java b/PublicComponent/src/main/java/com/arialyy/aria/orm/SqlUtil.java index 80f236a5..f975e34f 100644 --- a/PublicComponent/src/main/java/com/arialyy/aria/orm/SqlUtil.java +++ b/PublicComponent/src/main/java/com/arialyy/aria/orm/SqlUtil.java @@ -352,7 +352,7 @@ final class SqlUtil { * @return 编码后的字符串 */ static String encodeStr(String str) { - str = str.replaceAll("\\\\+", "%2B"); + str = str.replaceAll("\\+", "%2B"); return URLEncoder.encode(str); }