Skip to content

Commit

Permalink
Using other regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiaschulz committed Dec 15, 2023
1 parent 1ebdbe0 commit df6c39e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified pwsh/module/build/AzAPICall.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ function AzAPICall {
catch {
$azAPIRequestConvertedFromJson = ($azAPIRequest.Content)
try {
$storageResponseXML = [xml]($azAPIRequestConvertedFromJson -replace ($azAPIRequestConvertedFromJson -replace '<.*'))
$storageResponseXML = [xml]($azAPIRequestConvertedFromJson -replace '^.*?<', '<')
}
catch {
debugAzAPICall -debugMessage "non JSON object; return as is ($((($azAPIRequestConvertedFromJson).gettype()).Name))"
Expand Down
2 changes: 1 addition & 1 deletion pwsh/module/dev/AzAPICall/functions/AzAPICall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@
catch {
$azAPIRequestConvertedFromJson = ($azAPIRequest.Content)
try {
$storageResponseXML = [xml]($azAPIRequestConvertedFromJson -replace ($azAPIRequestConvertedFromJson -replace '<.*'))
$storageResponseXML = [xml]($azAPIRequestConvertedFromJson -replace '^.*?<', '<')
}
catch {
debugAzAPICall -debugMessage "non JSON object; return as is ($((($azAPIRequestConvertedFromJson).gettype()).Name))"
Expand Down

0 comments on commit df6c39e

Please sign in to comment.