mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 06:51:39 +08:00
dbname with minus('-') can not be parsed in ob writer
This commit is contained in:
parent
59f1825016
commit
a02a69f2bd
@ -31,7 +31,7 @@ public class ServerConnectInfo {
|
||||
}
|
||||
|
||||
private void parseJdbcUrl(final String jdbcUrl) {
|
||||
Pattern pattern = Pattern.compile("//([\\w\\.\\-]+:\\d+)/([\\w]+)\\?");
|
||||
Pattern pattern = Pattern.compile("//([\\w\\.\\-]+:\\d+)/([\\w-]+)\\?");
|
||||
Matcher matcher = pattern.matcher(jdbcUrl);
|
||||
if (matcher.find()) {
|
||||
String ipPort = matcher.group(1);
|
||||
|
Loading…
Reference in New Issue
Block a user