Skip to content

Commit

Permalink
Update Oracle URL regex to support @ character
Browse files Browse the repository at this point in the history
  • Loading branch information
HeshanSudarshana committed Jan 22, 2024
1 parent fb13e1b commit 18052e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static Map<String, Object> getConfigMap(String username, String password,
break;
}
case "oracle": {
String regex = "jdbc:oracle:(\\w*):\\/\\/([a-zA-Z0-9-_\\.]+):(\\d+)([\\/]?)([a-zA-Z0-9-_\\.]*)";
String regex = "jdbc:oracle:(\\w*):@?\\/?\\/?([a-zA-Z0-9-_\\.]+):(\\d+)([\\/]?)([a-zA-Z0-9-_\\.]*)";
Pattern p = Pattern.compile(regex);
Matcher matcher = p.matcher(url);

Expand Down

0 comments on commit 18052e5

Please sign in to comment.