mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 19:41:08 +07:00
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);
|
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…
Reference in New Issue
Block a user