Skip to content

Commit a42149d

Browse files
committed
Reformat script
1 parent b5a8689 commit a42149d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: TOOL-Remove-StringSpecialCharacter/Remove-StringSpecialCharacter.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
function Remove-StringSpecialCharacter
2-
{
3-
<#
1+
function Remove-StringSpecialCharacter {
2+
<#
43
.SYNOPSIS
54
This function will remove the special character from a string.
65
@@ -50,7 +49,7 @@ function Remove-StringSpecialCharacter
5049
[String[]]$SpecialCharacterToKeep
5150
)
5251
PROCESS {
53-
try{
52+
try {
5453
IF ($PSBoundParameters["SpecialCharacterToKeep"]) {
5554
$Regex = "[^\p{L}\p{Nd}"
5655
Foreach ($Character in $SpecialCharacterToKeep) {
@@ -71,7 +70,8 @@ function Remove-StringSpecialCharacter
7170
Write-Verbose -Message "Original String: $Str"
7271
$Str -replace $regex, ""
7372
}
74-
}catch{
73+
}
74+
catch {
7575
$PSCmdlet.ThrowTerminatingError($_)
7676
}
7777
} #PROCESS

0 commit comments

Comments
 (0)