From f9d7f16c0097351003dda0b454255f12bcac7d04 Mon Sep 17 00:00:00 2001 From: Vladimir Safonkin Date: Thu, 15 Apr 2021 13:30:04 +0300 Subject: [PATCH] Improve key names validation for keys from user nuget config --- src/authutil.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/authutil.ts b/src/authutil.ts index 218166f..d94bf3b 100644 --- a/src/authutil.ts +++ b/src/authutil.ts @@ -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); }