fix:oceanbase datasource support special characters

This commit is contained in:
xxsc0529 2025-05-07 17:07:00 +08:00
parent d40ef264dc
commit 37915a9ef3
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public class ServerConnectInfo {
} }
private void parseJdbcUrl(final String jdbcUrl) { private void parseJdbcUrl(final String jdbcUrl) {
Pattern pattern = Pattern.compile("//([\\w\\.\\-]+:\\d+)/([\\w]+)\\?"); Pattern pattern = Pattern.compile("//([\\w\\.\\-]+:\\d+)/([^\\\\?]*)");
Matcher matcher = pattern.matcher(jdbcUrl); Matcher matcher = pattern.matcher(jdbcUrl);
if (matcher.find()) { if (matcher.find()) {
String ipPort = matcher.group(1); String ipPort = matcher.group(1);