console.log(`dotnet-auth: Finding any source references in ${existingFileLocation}, writing a new temporary configuration file with credentials to ${tempFileLocation}`);
letxml;
@ -4910,8 +4913,8 @@ function writeFeedToFile(feedUrl, existingFileLocation, tempFileLocation) {
}
xml=xml.ele('packageSourceCredentials');
sourceKeys.forEach(key=>{
if(key.indexOf(' ')>-1){
thrownewError("This action currently can't handle source names with spaces. Remove the space from your repo's NuGet.config and try again.");
if(!isValidKey(key)){
thrownewError("Source name can contain letters, numbers, and '-', '_', '.' symbols only. Please, fix source name in NuGet.config and try again.");