From 18052e591bc1547b792e9340a219cb1eef5369d8 Mon Sep 17 00:00:00 2001 From: HeshanSudarshana Date: Mon, 22 Jan 2024 12:17:37 +0530 Subject: [PATCH] Update Oracle URL regex to support @ character --- .../java/io/siddhi/extension/io/cdc/util/CDCSourceUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/src/main/java/io/siddhi/extension/io/cdc/util/CDCSourceUtil.java b/component/src/main/java/io/siddhi/extension/io/cdc/util/CDCSourceUtil.java index bb33748..d2b781a 100644 --- a/component/src/main/java/io/siddhi/extension/io/cdc/util/CDCSourceUtil.java +++ b/component/src/main/java/io/siddhi/extension/io/cdc/util/CDCSourceUtil.java @@ -138,7 +138,7 @@ public static Map 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);