Skip to content

Commit e958934

Browse files
Get-ADOArea/IterationPath: Allowing -AreaPath/-IterationPath to pipe to itself, and making more fault-tolerant.
1 parent 847f688 commit e958934

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Get-ADOAreaPath.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"$server".TrimEnd('/') # the Server (minus any trailing slashes),
8787
(. $ReplaceRouteParameter $PSCmdlet.ParameterSetName) # and any parameterized URLs in this parameter set.
8888
if ($AreaPath) {
89-
$AreaPath
89+
$AreaPath -replace '\\','/' -replace '.+/Area' -replace '^/'
9090
}
9191
) -as [string[]] -ne '' -join '/'
9292

Get-ADOIterationPath.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"$server".TrimEnd('/') # the Server (minus any trailing slashes),
8585
(. $ReplaceRouteParameter $PSCmdlet.ParameterSetName) # and any parameterized URLs in this parameter set.
8686
if ($IterationPath) {
87-
$IterationPath
87+
$IterationPath -replace '\\','/' -replace '.+/Iteration' -replace '^/'
8888
}
8989
) -as [string[]] -ne '' -join '/'
9090

0 commit comments

Comments
 (0)