Skip to content

Commit

Permalink
Improve key names validation for keys from user nuget config
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Safonkin committed Apr 15, 2021
1 parent 56d96e8 commit f9d7f16
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/authutil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit f9d7f16

Please sign in to comment.