mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-01 10:32:35 -05:00
Update Replace Regex for Code Formatting in 'Do-PreProcessing' Script Tool
This commit is contained in:
@ -42,11 +42,10 @@ function Do-PreProcessing {
|
||||
-replace ('\t', ' ') `
|
||||
-replace ('\)\{', ') {') `
|
||||
-replace ('\)\r?\n\s*{', ') {') `
|
||||
-replace ('Try \{', 'try {') `
|
||||
-replace ('try\{', 'try {') `
|
||||
-replace ('Try(\s*)?\{', 'try {') `
|
||||
-replace ('try\r?\n\s*\{', 'try {') `
|
||||
-replace ('}\r?\n\s*catch', '} catch') `
|
||||
-replace ('\} Catch', '} catch') `
|
||||
-replace ('\}(\s*)?Catch', '} catch') `
|
||||
| Set-Content "$file"
|
||||
Write-Progress -Activity $ProgressActivity -Status "$ProgressStatusMessage - Finished $i out of $numOfFiles" -PercentComplete (($i/$numOfFiles)*100)
|
||||
}
|
||||
|
Reference in New Issue
Block a user