Improve key names validation for keys from user nuget config

pull/187/head
Vladimir Safonkin 5 years ago
parent 56d96e897e
commit f9d7f16c00

@ -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);
} }

Loading…
Cancel
Save