From 6991e229e054a82870378b285259293cb263fbbd Mon Sep 17 00:00:00 2001 From: Alex Weininger Date: Tue, 31 Dec 2024 12:19:07 -0500 Subject: [PATCH] Fix finding items with slashes in the account id (#1000) --- src/tree/ResourceTreeDataProviderBase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tree/ResourceTreeDataProviderBase.ts b/src/tree/ResourceTreeDataProviderBase.ts index 17077111..1245a133 100644 --- a/src/tree/ResourceTreeDataProviderBase.ts +++ b/src/tree/ResourceTreeDataProviderBase.ts @@ -134,5 +134,5 @@ export abstract class ResourceTreeDataProviderBase extends vscode.Disposable imp } function removePrefix(id: string): string { - return id.replace(/\/accounts\/[^/]+\/tenants\/[^/]+\//i, '/') + return id.replace(/\/accounts\/.+\/tenants\/[^/]+\//i, '/') }