Skip to content

Commit

Permalink
Fix finding items with slashes in the account id (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger authored Dec 31, 2024
1 parent c9d458e commit 6991e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/ResourceTreeDataProviderBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '/')
}

0 comments on commit 6991e22

Please sign in to comment.