Improve key names validation for keys from user nuget config
This commit is contained in:
parent
56d96e897e
commit
f9d7f16c00
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue