Skip to content

Commit

Permalink
Fix finding items with slashes in the account id
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweininger committed Dec 31, 2024
1 parent c9d458e commit a6e5e3c
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 a6e5e3c

Please sign in to comment.