Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appsettings: remove number from error message #1705

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions appsettings/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 appsettings/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@microsoft/vscode-azext-azureappsettings",
"author": "Microsoft Corporation",
"version": "0.2.1",
"version": "0.2.2",
"description": "Common features and tools surrounding App Settings for the Azure VS Code extensions",
"tags": [
"azure",
Expand Down
2 changes: 1 addition & 1 deletion appsettings/src/tree/AppSettingsTreeItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function validateAppSettingKey(settings: StringDictionary, client: IAppSe
}

if (client.isContainer && !(/^[-._a-zA-Z][-._a-zA-Z0-9]*$/.test(newKey))) {
return 'App setting names must begin with a letter, number, period ("."), or underscore ("_") and can only contain letters, numbers (0-9), periods ("."), and underscores ("_")';
return 'App setting names must begin with a letter, period ("."), or underscore ("_") and can only contain letters, numbers (0-9), periods ("."), and underscores ("_")';
}

newKey = newKey.trim();
Expand Down
Loading