|
|
|
@ -49,7 +49,7 @@ export function getJdbcDatabaseType(database: string, driver: string): DatabaseT
|
|
|
|
|
|
|
|
|
|
export function resolveUrlInfo (url: string) { |
|
|
|
|
if (BI.isNull(url)) return {}; |
|
|
|
|
const oracleUlr = url.match(/^jdbc:(oracle):(thin:([0-9a-zA-Z/]*)?@|thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?(:)([^]+)(.*)/i); |
|
|
|
|
const oracleUlr = url.match(/^jdbc:(oracle):(thin:([0-9a-zA-Z/]*)?@|thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?(:|\/)([^]+)(.*)/i); |
|
|
|
|
if (oracleUlr) { |
|
|
|
|
return { |
|
|
|
|
host: oracleUlr[5], |
|
|
|
|