Skip to content

Commit d6ecd39

Browse files
authored
Merge pull request #373 from lipkau/fix/#372-RemoveTrailingSlashFromJiraServerUrl
Added check for trailing `/` to be removed from `JiraServerUrl`
2 parents ce55dcd + acf739e commit d6ecd39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JiraPS/Public/Get-JiraConfigServer.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Get-JiraConfigServer {
1212
Write-DebugMessage "[$($MyInvocation.MyCommand.Name)] ParameterSetName: $($PsCmdlet.ParameterSetName)"
1313
Write-DebugMessage "[$($MyInvocation.MyCommand.Name)] PSBoundParameters: $($PSBoundParameters | Out-String)"
1414

15-
return $script:JiraServerUrl
15+
return ($script:JiraServerUrl -replace "\/$", "")
1616
}
1717

1818
end {

Tests/JiraPS.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Describe "General project validation" -Tag Unit {
7070

7171
Import-Module $env:BHManifestToTest -Force
7272

73-
Get-JiraConfigServer | Should -Be "https://example.com/"
73+
Get-JiraConfigServer | Should -Be "https://example.com"
7474
}
7575

7676
# It "module is imported with default prefix" {

0 commit comments

Comments
 (0)