Skip to content

Commit

Permalink
Throw registry URL to lowercase (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored Dec 4, 2023
1 parent 5ea29cc commit d848eff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/vscode-docker-registries/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/vscode-docker-registries",
"author": "Microsoft Corporation",
"version": "0.1.9",
"version": "0.1.10",
"description": "Extensibility model for contributing registry providers to the Docker extension for Visual Studio Code",
"license": "See LICENSE in the project root for license information.",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class GenericRegistryV2DataProvider extends RegistryV2DataProvider {

public async removeTrackedRegistry(registry: V2Registry): Promise<void> {
// remove registry url from list of tracked registries
const registryUriString = registry.baseUrl.toString();
const registryUriString = registry.baseUrl.toString().toLowerCase();
const trackedRegistryStrings = this.extensionContext.globalState.get<string[]>(TrackedRegistriesKey, []);
const index = trackedRegistryStrings.findIndex(r => r === registryUriString);
if (index !== -1) {
Expand Down

0 comments on commit d848eff

Please sign in to comment.