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

View File

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