Browse Source

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

release/11.0
Austin.Duan 11 months ago
parent
commit
ce17bd506c
  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 // 处理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) { if (sapHanaUrl) {
return { return {
host: sapHanaUrl[5], host: sapHanaUrl[5],
port: sapHanaUrl[7] === 'port' ? '' : sapHanaUrl[7], port: sapHanaUrl[7] === 'port' ? '' : sapHanaUrl[7],
databaseName: '', databaseName: sapHanaUrl[9] || '',
urlInfo: sapHanaUrl[9], urlInfo: sapHanaUrl[10],
}; };
} }

Loading…
Cancel
Save