Browse Source

Pull request #8722: FDL-9101 fix: 修复hana数据连接url联动输入框异常问题

Merge in DEC/decision-webui-dcm from ~AUSTIN.DUAN/decision-webui-dcm:release/11.0 to release/11.0

* commit 'ce17bd506c314fd426148dbdc464cec1e3f92171':
  FDL-9101 fix: 修复hana数据连接url联动输入框异常问题
release/11.0
Austin.Duan-段嗣跃 11 months ago
parent
commit
9acf2bfc1c
  1. 6
      src/modules/app.provider.ts

6
src/modules/app.provider.ts

@ -92,13 +92,13 @@ BI.provider('dec.connection.provider.datebase', function () {
}
// 处理SAP HANA数据连接url
const sapHanaUrl = url.match(/^jdbc:(sap):(thin:([0-9a-zA-Z/]*)?@|thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?([^]+)?(.*)/i);
const sapHanaUrl = url.match(/^jdbc:(sap):(thin:([0-9a-zA-Z/]*)?@|thin:([0-9a-zA-Z/]*)?@\/\/|\/\/|)([0-9a-zA-Z_\\.-]+)(:([0-9|port]+))?(\?databaseName=)?([^&]+)([^]+)?(.*)/i);
if (sapHanaUrl) {
return {
host: sapHanaUrl[5],
port: sapHanaUrl[7] === 'port' ? '' : sapHanaUrl[7],
databaseName: '',
urlInfo: sapHanaUrl[9],
databaseName: sapHanaUrl[9] || '',
urlInfo: sapHanaUrl[10],
};
}

Loading…
Cancel
Save