Skip to content

Commit

Permalink
CB-5578 sends server url without protocol while custom certificate de…
Browse files Browse the repository at this point in the history
…letion
  • Loading branch information
sergeyteleshev committed Oct 2, 2024
1 parent 5eb9105 commit 9ef3694
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions webapp/packages/core-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export * from './Quadtree/index.js';

export * from './underscore.js';

export * from './removeProtocolFromUrl.js';
export * from './emptyConstants.js';
export * from './base64ToBlob.js';
export * from './blobToBase64.js';
Expand Down
10 changes: 10 additions & 0 deletions webapp/packages/core-utils/src/removeProtocolFromUrl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* CloudBeaver - Cloud Database Manager
* Copyright (C) 2020-2024 DBeaver Corp and others
*
* Licensed under the Apache License, Version 2.0.
* you may not use this file except in compliance with the License.
*/
export function removeProtocolFromUrl(url: string): string {
return url.replace(/(^\w+:|^)\/\//, '');
}

0 comments on commit 9ef3694

Please sign in to comment.