You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/06/28 06:30:19 UTC

[shardingsphere] branch master updated: regex: \\+ -> + in [] (#18640)

This is an automated email from the ASF dual-hosted git repository.

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 5f852d376c6 regex: \\+ -> + in [] (#18640)
5f852d376c6 is described below

commit 5f852d376c6ae19c09c8b9946d015f7a3c698843
Author: liguoping <xd...@163.com>
AuthorDate: Tue Jun 28 14:30:09 2022 +0800

    regex: \\+ -> + in [] (#18640)
---
 .../infra/database/metadata/url/StandardJdbcUrlParser.java              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/database/metadata/url/StandardJdbcUrlParser.java b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/database/metadata/url/StandardJdbcUrlParser.java
index 7d515f19200..7ef9327037c 100644
--- a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/database/metadata/url/StandardJdbcUrlParser.java
+++ b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/database/metadata/url/StandardJdbcUrlParser.java
@@ -30,7 +30,7 @@ import java.util.regex.Pattern;
  */
 public final class StandardJdbcUrlParser {
     
-    private static final String SCHEMA_PATTERN = "(?<schema>[\\w\\+:%]+)\\s*";
+    private static final String SCHEMA_PATTERN = "(?<schema>[\\w+:%]+)\\s*";
     
     private static final String AUTHORITY_PATTERN = "(?://(?<authority>[^/?#]*))?\\s*";