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 committed Jan 22, 2024
1 parent 5c8b52d commit bd15b1c
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 bd15b1c

Please sign in to comment.