Skip to content

Commit

Permalink
added invalid paramater throw error for resolve-htmlmarkdown
Browse files Browse the repository at this point in the history
  • Loading branch information
isab-m authored and schrolla committed Jan 25, 2024
1 parent a593151 commit a13f4d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions PowerShell/ScubaGear/Modules/CreateReport/CreateReport.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ function Resolve-HTMLMarkdown{
$ResolvedString = $OriginalString -replace '(\*\*)(.*?)(\*\*)', '<b>${2}</b>'
return $ResolvedString
} else {
$InvalidHTMLReplace = New-Object System.ArgumentException "$HTMLReplace is not valid"
throw $InvalidHTMLReplace
return $OriginalString
}
}
Expand Down

0 comments on commit a13f4d7

Please sign in to comment.