From 7f58d3faf7fe8498aa1a59394dd6d3a4d404968b Mon Sep 17 00:00:00 2001 From: sergeyteleshev Date: Thu, 3 Oct 2024 17:19:14 +0200 Subject: [PATCH] CB-5578 pr fixes --- webapp/packages/core-utils/src/index.ts | 1 - .../packages/core-utils/src/removeProtocolFromUrl.ts | 10 ---------- 2 files changed, 11 deletions(-) delete mode 100644 webapp/packages/core-utils/src/removeProtocolFromUrl.ts diff --git a/webapp/packages/core-utils/src/index.ts b/webapp/packages/core-utils/src/index.ts index 74ebef5a7b..9344e0c195 100644 --- a/webapp/packages/core-utils/src/index.ts +++ b/webapp/packages/core-utils/src/index.ts @@ -15,7 +15,6 @@ 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'; diff --git a/webapp/packages/core-utils/src/removeProtocolFromUrl.ts b/webapp/packages/core-utils/src/removeProtocolFromUrl.ts deleted file mode 100644 index 21c91f377f..0000000000 --- a/webapp/packages/core-utils/src/removeProtocolFromUrl.ts +++ /dev/null @@ -1,10 +0,0 @@ -/* - * 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+:|^)\/\//, ''); -}