We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 382cf44 + 4a95818 commit 1e0830bCopy full SHA for 1e0830b
extensions/agroal/deployment/src/main/resources/dev-ui/qwc-agroal-datasource.js
@@ -730,11 +730,12 @@ export class QwcAgroalDatasource extends QwcHotReloadElement {
730
}
731
732
733
- const urlPattern = /^jdbc:[^:]+:\/\/([^:/]+)(:\d+)?/;
+ const urlPattern = /\/\/([^:/?#]+)|@([^:/?#]+)/;
734
const match = jdbcUrl.match(urlPattern);
735
736
if (match) {
737
- const host = match[1];
+ // match[1] is for //host, match[2] is for @host
738
+ const host = match[1] || match[2];
739
if(host === "localhost" || host === "127.0.0.1" || host === "::1"){
740
return true;
741
0 commit comments