Skip to content

Commit

Permalink
fix excludevalues parameter on optimization #33
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKur committed Jul 20, 2023
1 parent 2fd689d commit 8159c3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Function Optimize-M365DocSection(){
$value = $value.Trim()
}
}
if($ExcludeValues){
if(($ExcludeValues -and $p.Name -in @("Value","ValueName") -and $DataNew.Title -eq "Settings") -or ($ExcludeValues -and $DataNew.Title -ne "Settings")){
$Value = ""
}

Expand Down

0 comments on commit 8159c3c

Please sign in to comment.