Skip to content

Commit

Permalink
Merge pull request #1722 from Microsoft/vtbassmatt-trim-whitespace
Browse files Browse the repository at this point in the history
trim whitespace from URL
  • Loading branch information
vtbassmatt committed May 13, 2016
2 parents 89c292d + 617cc58 commit 44699a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tasks/NugetPublisher/NuGetPublisher.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ if($connectedServiceName -and $useExternalFeed)
elseif($feedName -and (-not $useExternalFeed))
{
Write-Verbose "Using provided feed URL"
$nugetServer = $feedName
$nugetServer = $feedName.Trim()

if (-not [URI]::IsWellFormedUriString($nugetServer, [UriKind]::Absolute))
{
Expand Down Expand Up @@ -236,4 +236,4 @@ try
finally
{
$env:NUGET_EXTENSIONS_PATH = $initialNuGetExtensionsPath
}
}

0 comments on commit 44699a7

Please sign in to comment.