Improve key names validation for keys from user nuget config

This commit is contained in:
Vladimir Safonkin 2021-04-15 13:30:04 +03:00
parent 56d96e897e
commit f9d7f16c00
1 changed files with 1 additions and 3 deletions

View File

@ -25,9 +25,7 @@ export function configAuthentication(
writeFeedToFile(feedUrl, existingNuGetConfig, tempNuGetConfig); writeFeedToFile(feedUrl, existingNuGetConfig, tempNuGetConfig);
} }
function isValidKey( function isValidKey(key: string): boolean {
key: string
): boolean {
return /^[0-9\w\-\_\.]+$/i.test(key); return /^[0-9\w\-\_\.]+$/i.test(key);
} }